Linux: Get Current Directory Size in MB

I forget this every time, so am posting for myself as well as others :)

On the command line, simply change into the directory you want the size of, and the following command will return the size of the directory (and all its files/sub-directories) in human readable format:

du -sh

More info on the du command and options here. Cheers.

This entry was posted in Linux. Bookmark the permalink.

Leave a reply