Getting the disk space usage in Linux is easy! Learn how to with this quickie!
The fastest way to get disk space usage in Linux is with the disk free command:
The disk free command (
df) displays information about the disks in the system by using the
-h flag as an option, it will display sizes in human readable formats.
Will return a table with the following contents:
More Ways to get disk space usage
Ravie Savie explains the usage of
df in a more detailed way on his blog:
More Linux Quickies