Configuring filesystems with mkfs, df, du, and fsck
Although most Linux distributions today have simple-to-use graphical interfaces for setting up and managing filesystems, knowing how to perform those tasks from the command line is a valuable skill. We’ll show you how to configure and manage filesystems with mkfs, df, du, and fsck.
Linux supports a wide array of filesystem types, including many that originated on other operating systems. The most common choices for hard disks, however, remain the native Linux ext2 and ext3 (the successor to ext2), followed by the high-performance XFS and ReiserFS filesystems. For compatibility, it is also important to know how to work with the VFAT filesystem, because it is the standard choice found pre-installed on many media, including USB thumb drives and flash disks.