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:
1
|
|
This will display an output similar to:
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:
1
|
|
Which should give you an output simliar to: