Forrest logo
back to the wipefs tool

wipefs:tldr:92578

wipefs: Force wipe, even if the filesystem is mounted.
$ sudo wipefs --all --force ${-dev-sdX}
try on your machine

The command you provided is used to wipe all file system signatures on a specific storage device. Here is a breakdown of each component:

  • sudo: It is used to execute the command with administrative ("superuser") privileges. This allows the command to make changes to the system, including wiping file system signatures.

  • wipefs: It is a command-line utility in Linux used to erase or delete file system signatures from storage devices. File system signatures are a set of bytes that indicate the presence of a specific file system on a device.

  • --all: This option specifies that all available file system signatures on the device should be wiped. It ensures that any existing file system signatures are completely removed.

  • --force: This option instructs the command to force the operation without prompting for confirmation. It avoids any prompts or warnings, allowing the command to execute without user intervention.

  • ${-dev-sdX}: This is a placeholder for a specific storage device. The format /dev/sdX is commonly used to represent storage devices in Linux, where X is replaced by a specific device identifier (e.g., /dev/sda, /dev/sdb, etc.). By specifying the target device, the command will wipe file system signatures on that specific device.

Overall, the sudo wipefs --all --force /dev/sdX command will wipe all file system signatures on the specified device (represented as /dev/sdX) without any confirmation prompts.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the wipefs tool