Enter your email address:

Delivered by FeedBurner

du - Shows the disk space a file or directory is using in your disk


StumbleUpon Toolbar

This is a very useful command you may use to find which file or directory is filling you disk.

So if you need to check the file and directory size in your home directory you can enter

cd

to switch to your home directory

du -S * | sort -n

This is going to list all files, directiries and sub-directories in size order, and will not include sub-directories' size in directories' size, if you want to have a total size of a directory including its sub-directories, you will have to remove the -S

du * | sort -n

If you want to have the sizes in "human language" I mean in kilos and megas, add the -h parameter.

Trackback URL for this post:

http://www.go2linux.org/trackback/503
StumbleUpon Toolbar

 If you like this article, subscribe to our full rss

If this article was somehow useful for you, you can leave something in the tip's jar

Please post your question in our forum and use comments only to leave your comments about the article, thanks.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

This site is proudly hosted at Bluefur Hosting