How to check folder size on Ubuntu?

Tue, Aug 11, 2020 One-minute read

To check folder size on Ubuntu you have to call the command below:

du -hs /path/to/directory

where -h means that numbers will be in ther form which is easy to read by human and -s means that you will get summary size - not the list of files which the folder contains.

Useful resource: How do I determine the total size of a directory (folder) from the command line?


Thank you for visiting my website. I hope you enjoyed content which I prepared and learned something valuable from it. If you want to be informed about my next entries or occasionally get a message with a collection of some interesting links, please subscribe to my newsletter. I will be extremely pleased if you do this and join my community!

  • By clicking button below you agree to send you news from my blog, about my products and services. Above data are stored in Mailchimp and I do not share them to anyone. More info you can find in privacy policy.