Login or Sign up

Find out how much disk space your folders are using from the linux command line

Posted by: skyl on Nov. 24, 2009

Simple but not altogether easy to find if you don't know what you're looking for:

$ du -h *

The console will then give you back the size of all of the files and folders in your pwd something not unlike:

9.2M        docs
9.6M        images
4.0K        jq-img
69M         sounds
18M         videos
105M        total

Don't want to put that dir in source control!

Of course, now that you know about the du command, you can get more information with one or more of the following commands:

$ man du
$ info du
$ info coreutils 'du invocation'

Comments on This Post:

Please Login (or Sign Up) to leave a comment