1. Computing & Technology

Discuss in my forum

Juergen Haas

Check Disk Space with the Commands du and df

By , About.com GuideMarch 16, 2009

Follow me on:

A quick way to get a summary of the available and used disk space on your Linux system is to type in the df command in a terminal window. The command df stands for "disk filesystem". With the -h option (df -h) it shows the disk space in "human readable" form, which in this case means, it gives you the units along with the numbers.

The du command on the other hand shows the disk space used by the files and directories in the current directory. Again the -h option (df -h) makes the output easier to comprehend.

Comments
September 16, 2010 at 2:15 pm
(1) Rob Ottaway :

Thanks Juergan, this is really easy to digest!

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2012 About.com. All rights reserved.

A part of The New York Times Company.