I'm in the process of creating some bash script, and I would need to silence the parted
command in some use cases. The answers of this question doesn't help.
Here's the piece of code I'm using:
parted -s $1 mklabel gpt &> /dev/null
And here's the output, no matter the output redirection:
[root@localhost tmp]# parted -s /dev/sda mklabel gpt &> /dev/null
sda:
[root@localhost tmp]#
Is there's any way, even a tricky one, to silence this command?