Pages

Tuesday, March 12, 2013

Linux folder size from command prompt

Best way to check folder size.

du -hs /var/www/
7.8G

If want to exclude any(upload here) folder then

du -hs --exclude=upload*
2G
 

No comments: