Linux – How to find out the top space-consuming directories or files

disk-spacelinuxshellUbuntu

My disk is running out of space:

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
...
/dev/sda7       803G  715G   48G  95% /home

I'd like to go through the whole home directory and find out the top 10 space-consuming directories or files, to decide whom to be removed.

du -sh * can see size of all subdirectories, but it only gets current folder. I might need to divide into many subdirs respectively and recursively to get who are the culprits I need.

Is there a good way to do this?

Best Answer

If you can use a GUI try Baobab. This is a graphical tool for analyzing hard disk space usage.

Related Question