mkfs

The family of commands that create a new, empty file system on a partition or logical volume.

In more detail

mkfs.xfs, mkfs.ext4 and mkfs.vfat each create one type, and -L gives it a label. Running it on a device that holds data destroys that data, so check the device with lsblk first.

Example

mkfs.ext4 -L archive /dev/vdc

Related terms

Taught in

References

Certification courses