Linux – how to display file system disk space statistics


In Linux there are lot of ways to disk size and/or space, but the ‘Disk Filesystem’ (df) command is old reliable and has been around a long time.   The ‘df’ command provides a summary of disk space and free space, which I find myself coming back to time after time.

Basic Command Format

DF -<<Option>>   <<File>>

Example ‘Disk Filesystem’, Command

df -h

  • -h = Human readable in MegaBytes

For more details in Linux

df –help

Example Command Output

root@BlogSrvr1 /]# df -h

Filesystem            Size  Used Avail Use% Mounted on


36G   34G   16M 100% /

tmpfs                 3.9G     0  3.9G   0% /dev/shm

/dev/sda1             477M   33M  419M   8% /boot


11G   27M  9.9G   1% /data


4.8G   33M  4.6G   1% /home


25G   13G   11G  55% /opt/IBM


11G  6.0G  3.7G  62% /scratch


11G   27M  9.9G   1% /tmp/dev/shm