Disk Management Commands

Table of Contents

Your Linux system may have multiple disks (HDD or SSD). These disks may be divided into partitions. The partitions are generally called devices in Linux.

The commands mentioned in this section deals with disk management, partition handling, filesystem creation and filesystem checking.

You’ll learn about the following commands:

CommandDescriptionExamples
dfChecking disk spacedf command examples
ddCopying and converting filesdd command examples
mkfsFormat a disk or partition in a certain filesystemmkfs command examples
fsckChecking and (optionally) repairing the file systemfsck command examples
findmntRobust and customizable listing of mounted file systemsfindmnt command examples