mkfs
Build a Linux filesystem on a hard disk partition. tldr-pages
On Linux
Linux
Build a Linux filesystem on a hard disk partition. Note: This command is deprecated, use filesystem specific commands like mkfs.ext4 instead.
Build a Linux ext2 filesystem on a partition
sudo mkfs /dev/sdXYIdentifyBuild a filesystem of a specified type
sudo mkfs --type ext4 /dev/sdXYIdentifyBuild a filesystem of a specified type and check for bad blocks
sudo mkfs -c --type ntfs /dev/sdXYIdentify