PDA

View Full Version : Linux: Find Out Directory Size Command



b0nd
06-28-2016, 05:37 AM
du -h -> shows size of directories and recursively all files in them within pwd
du -hs -> shows size of directories only within pwd
du -hs .[^.]* -> shows size of all hidden directories in pwd

Cheers!

[s]
06-29-2016, 10:19 AM
du -h -> shows size of directories and recursively all files in them within pwd
du -hs -> shows size of directories only within pwd
du -hs .[^.]* -> shows size of all hidden directories in pwd

Cheers!


du -hs .[^.]* -> shows size of all hidden directories in pwd This is interesting command and there is another command to get hidden directories size.
du -k /var/www