Linux mlabel Command

Linux 命令大全Linux Command Collection

The Linux mlabel command is used to set the label (Label) on a disk.

If a label is set on the disk, mlabel will display it to the user. If no new label is specified and no c or s option is specified, mlabel will prompt the user to enter a new label. If Enter is pressed directly, the original label will be deleted.

Syntax

mlabel [-vcs] drive:[new_label]

Parameter Description:

  • -v More information.
  • -c Clear the original label without showing a prompt message.
  • -s Display the current label without showing a prompt message.

Examples

Change the label of drive A to newlabel.

mlabel a:newlabel

Linux 命令大全Linux Command Collection

Other Extensions