
To show inode (or index node) use on each mounted filesystem, use -inodes ( -i for short): $ df -ihįilesystem Inodes IUsed IFree IUse% Mounted on If you want to run df in its human-readable format, use the -human-readable ( -h for short) option: $ df -hįilesystem Size Used Avail Use% Mounted on

Lists of long numbers (as shown above) can be difficult to parse.

Disk space is shown in 1K blocks by default: $ dfįilesystem 1K-blocks Used Available Use% Mounted on If you don't include a file name, the output shows the space available on all currently mounted filesystems. The df command primarily checks disk usage on a mounted filesystem. Like many Linux commands, df uses the following structure: df.
BASH GREP FOR FILES THAT ARE GIGABYTES HOW TO
This article discusses how to use the df command. You might also be interested in my article Make du's output more useful with this neat trick. The df command displays the amount of disk space available on the filesystem with each file name's argument.įor a good overview of the du command, read Tyler Carrigan's article Linux commands: du and the options you should be using. While du reports files' and directories' disk usage, df reports how much disk space your filesystem is using. Two related commands that every system administrator runs frequently are df and du.

How well do you know Linux? Take a quiz and get a badge.Linux system administration skills assessment.A guide to installing applications on Linux.Download RHEL 9 at no charge through the Red Hat Developer program.
