What Does Df Do in Linux?
Contents

The df command (short for disk free), is used to display information related to file systems about total space and available space. If no file name is given, it displays the space available on all currently mounted file systems.

What is the use of df?

Use the df command to display information about total space and available space on a file system. The FileSystem parameter specifies the name of the device on which the file system resides, the directory on which the file system is mounted, or the relative path name of a file system.

How do you read df output?

To view disk space usage run the df command. This will print a table of information to standard output. This can be useful to discover the amount of free space available on a system or filesystems. Use% – the percentage that the filesystem is in use.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest