du -sk to identify space usage unix

Find out what directories are using up disk space in unix with this command:

du -sk * | sort -n

I often put it into a function so I can call it quickly:

g () {
  du -sk * | sort -n
}

df -h (df -k on old machines) shows the filesystem disk utilisation.

April 8, 2010

Leave a Reply

Your email address will not be published. Required fields are marked *