Linux df command output

Fig.01: df command in action

Fig.01: df command in action

You can type the following command to see disk space usage on a Linux operating system:
df
OR
df -h
Sample outputs:

Filesystem      Size  Used Avail Use% Mounted on
udev             10M     0   10M   0% /dev
tmpfs           597M  9.5M  587M   2% /run
/dev/sdc1        15G  7.5G  6.1G  56% /
tmpfs           1.5G     0  1.5G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           1.5G     0  1.5G   0% /sys/fs/cgroup
/dev/sda        2.8T   67G  2.7T   3% /data
tmpfs           299M     0  299M   0% /run/user/0

Understanding the df command output

  1. The first column displays Linux filesystem (e.g. /dev/sda or /dev/sdc1).
  2. The second column displays the size of filesystem shown in the first column such as 2.8T (TB) or 15G (GB).
  3. The third column displays used disk space for filesystem shown in the first column.
  4. The fourth column displays available (free disk) space for filesystem shown in the first column.
  5. The fifth column displays the percentage of used disk space for the filesystem shown in the first column.
  6. The last column displays mount point for the filesystem shown in the first column.

Examples and usage: Linux Check Disk Space Command

Leave a Comment