wipefs:tldr:4c762
The command sudo wipefs ${-dev-sdX}
is used to wipe filesystem signatures on a specified storage device (sdX) using the wipefs
utility. Here is the breakdown of the command:
-
sudo
: This command is used to run the following command as superuser or root user. It provides the necessary privileges to execute administrative tasks. -
wipefs
: This is a utility in Linux used to erase filesystem signatures, labels, or partitions from a device or disk. It removes any metadata information that might be present on the device, making it appear as a blank or unformatted device. -
${-dev-sdX}
: This part of the command represents the device you want to wipe. ThesdX
is a placeholder and it should be replaced with the actual identifier of the device you want to wipe, such assda
orsdb
. The${}
syntax is commonly used to pass variables or parameters to the command.
So, when you run the command with an actual device identifier, it will erase any filesystem signatures or labels present on that device, effectively wiping it clean. However, make sure to exercise caution and double-check the device identifier to avoid accidentally wiping the wrong device.