How to know the size of a directory?

A simple way to know what is the size of a directory using command line in human readable format.

Login to your server using SSH.

Format:

du -hs some_folder/

Ie:

du -hs public_html/

Good luck!

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

If you enjoyed this post, make sure you subscribe to our RSS Feed! Or if you prefer, you can Follow us on Twitter instead.