Linux Stuff && Coffee

Linux Check Free Disk Space

| Comments

The following will show you how to check disk space in Linux, using df  command line tool, note this will show you the amount of disk space used and show free space in Linux.

Linux Disk Space Command (df)

Enter the following to show the amount of disk space used and free space on all mounted linux partitions, note the command with no other options will display the disk usage in K:


This will display an output similar to:

Linux disk space command df

However looking at Linux disk usage in Kilobytes can be a daunting task these days, I much prefer to view my disk usage in MB / GB in Linux using the following df command option:

df -h

Which should give you an output simliar to:

Linux Disk Space in MB / GB with df command