Copied to clipboard

mkfs

The `mkfs` command is used to create a file system on Linux. It is typically used in conjunction with disk partitioning tools such as `fdisk` or `cfdisk` to create a new file system on a disk.
Unsupported type: string/check

Example

  • mkfs.ext4 /dev/sdb1: Create an ext4 file system on /dev/sdb1.
  • mkfs -t vfat /dev/sdc1: Create a vfat file system on /dev/sdc1.
  • mkfs -t ntfs /dev/sdd1: Create an ntfs file system on /dev/sdd1.

Note that in the above commands, /dev/sdb1, /dev/sdc1, and /dev/sdd1 are paths to the devices to be formatted. You should replace them with the actual device paths.