du -hs /var/www/
You may omit the directory path if you'd like to find out the size of the current directory that you are in.
du -hs
For more Linux/Unix commands, visit Useful Linux Commands page or refer to the following book.
Books, worksheets, templates, frameworks and other useful resources for Chief Technology Officers (CTOs), VPs of Engineering & Technology Directors
du -hs /var/www/
You may omit the directory path if you'd like to find out the size of the current directory that you are in.
du -hs
For more Linux/Unix commands, visit Useful Linux Commands page or refer to the following book.
Comments are closed.
This is what I was looking for. – Great Thanks
Thanks for that :D
I knew there must have been such a command ;) Thanks.
Thanks man , i was looking for this.
Fantastic, just what I was looking for. Great site by the way, I will be back here!
please help me about site optimization
one additional tip
ypu can type
du -hs /home/public/*
to list out all directory’s size in /home/public folder
Great blog, thank you very much for the inspiration,,,,,,,,,,,,
We provide exclusive access to top grade independent golf projects and producers.
Thanks By,
Hasan
[…]
Get directory size using Linux command – Web Development Blog […]
I recently came across this blog and have loved the content. I look forward to future content and will definitely link to this and tell the people I know. Thanks.