Disk Usage Analyzer for Linux *command line* or Where has all my space gone?

Pick a directory you want to analyze and run ncdu . Yes, with the dot. It should look like that:
ncdu screenshot from the application's website
If you don’t have ncdu installed, install it.
If you can’t, you can use the simpler standard utility du like that: du -hs *
-h makes the output humanly readable, -s tells du that you want to see the total size of items without listing every directory in the file system tree, and * says that you want du to operate on all of the items in the current directory.

The output will be something like:
xxM some_directory
xxM some_file
xxG another_directory

Repeat if necessary for sub-directories.

Leave a Reply

Your email address will not be published. Required fields are marked *