Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

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.

Enjoy!

blog comments powered by Disqus

About

Read about IT, Migration, Business, Money, Marketing and other subjects.

Some subjects: FusionPBX, FreeSWITCH, Linux, Security, Canada, Cryptocurrency, Trading.