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:
- go to the parent directory you want, for example /var: cd /var
- 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.
Enjoy!blog comments powered by Disqus