Forrest logo
back to the mkfs.vfat tool

mkfs.vfat:tldr:2b858

mkfs.vfat: Create a vfat filesystem inside partition 1 on device b (`sdb1`).
$ mkfs.vfat ${-dev-sdb1}
try on your machine

This command is used to create a FAT32 file system on a specific device, which in this case is specified as /dev/sdb1.

Let's break down the command:

  • mkfs.vfat: This is the command used to create a FAT file system. mkfs stands for "make file system" and .vfat specifies that the file system should be formatted in the FAT format.

  • ${-dev-sdb1}: This is the device on which the FAT32 file system will be created. /dev/sdb1 represents a specific partition on a storage device, usually a USB drive or an external hard drive. The /dev/sdb1 notation points to the first partition on the second SCSI or SATA hard disk (usually /dev/sda refers to the first SCSI/SATA hard disk). The dollar sign and curly braces indicate that the value inside should be substituted as a variable.

Overall, this command creates a FAT32 file system on the specified device /dev/sdb1.

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 mkfs.vfat tool