I Need To Make A Change With My IT Support! Call (225) 706-8414

How to view Disk Usage in Linux

You need to verify the properties (e.g. total space, used space, available space) of a disk in Linux

You use the /bin/df utility to view disk space information:

$ /bin/df -h
Filesystem            Size  Used   Avail Use% Mounted on
                      14G    12G   1.7G  88% /
tmpfs                499M      0   499M   0% /dev/shm
/dev/sda1            477M   131M   321M  29% /boot

The -h switch will output the sizes in “human readable” form instead of number of 1K blocks.  If a particular folder is not shown in the ‘Mounted on’ field, then work back up the path until you find a folder that is. In this example, all data on the machine is found on the lv_root logical volume, except for the files in /boot, which reside on a separate partition (/dev/sda1).

Concerned About Cyber Attacks?


Want to Migrate to the Cloud?

Office 365

Ready to Experience Microsoft Office 365?

Want the latest IT news directly in your inbox? Subscribe now!