« Mail server with Linux | Main | Mysql Secure Installation »

Disk Usage of hidden files in a dir

Disk Usage FAQ

This will give you a list of non-hidden folders in the current directory, the number of KB used by each of them, and sort them by size. If you have very large hidden files/folders (files/folders starting with a dot (.) are considered hidden), then you can use this somewhat more complex command to get the same sort of list as before, except including hidden files:

/bin/ls -la | awk '{print $9}' | grep -v '^\.\./$' | grep -v '^\./$' | xargs du -sk | sort -n

better use du -sh then du -sk... it's more lisible