In more than one ocasion, I have been in situations where I need to know what directory is the one who uses the most space in the disk. In order to know this. Follow the next steps:

  1. go to the parent directory you want, for example /var: cd /var
  2. type du --max-depth=1 -H | sort -n -r

The first line of the output will bhe the directory using the most part of the available space.


blog comments powered by Disqus