18 Jan, 2008
Get directory size using Linux command
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.
Love what you've just read? Subscribe to our newsletter to receive tips, resources and special offers related to web development & design.
Other similar posts that you might be interested in:
- Backuping and restoring a single table using mysqldump
- How to redirect old pages to new pages using htaccess
- Links Love Series 3: Web server administration (Unix/Linux)
- 13 FREE iPhone Apps for Web Developers
- www vs. non-www 301 redirect
- Book Review: Drupal 6 Content Administration
- 25 Most Dangerous Programming Errors

Hello! Welcome to Web development blog! My name is Ei Sabai and on this blog, I write about web development, mobile app development, latest web technologies and the likes. Read more 


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.