mkfs
mkfs is a Linux command in the Disk & Storage category, rated intermediate difficulty. Creates a filesystem on a device (formats a partition). The syntax is mkfs [options] device. It returns formatted filesystem. A close relative is mount, which mounts a filesystem to make it accessible at a directory. A close relative is umount, which unmounts a mounted filesystem. A close relative is fdisk, which manages disk partition tables (create, delete, resize partitions). More about this category: Linux disk and storage commands — mount, umount, fdisk, lsblk, and more. Manage disks, partitions, and filesystems. Related Disk & Storage commands: mount, umount, fdisk, blkid, dd, lsblk, parted, fsck. This page is part of the free Linux Reference documentation covering 304+ commands, each with syntax, options, practical examples, and a difficulty rating. Find mkfs and the other essentials on the Linux cheat sheet, or return to the Linux Reference homepage.