Finding which folders are using a lot of space

Sometimes log files grow up more than they should. In some cases some applications put log files in places we have no idea about, and as those files grow, we loose disk space.

I was facing this problem recently and I managed to find which folders were bigger than 1GB. This gave me a clue on where to find the disk space eater.

du -h / | grep '^\s*[0-9\.]\+G'

I’m sure there are several programs around that deal with this kind of problem, like NCurses, but I wanted a clean, simple and easy solution.

 


Comments

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *