mkfs -t type deviceArguments explained
- Options adjust output or behavior.
- Arguments name the files, services, hosts, or values the command should work with.
Common examples
sudo mkfs -t ext4 /dev/sdb1Formats /dev/sdb1 as ext4.
sudo mkfs.ext4 /dev/sdb1Calls the ext4 mkfs helper directly.
| Field | Details |
|---|---|
| Command | mkfs |
| Category | Disk and Storage |
| Primary use | Creates a filesystem on a device. |
| Syntax | mkfs -t type device |