I would like to create an script where give me a report of which folders have the higher usage space and keep doing that until there's no folder anymore.
Today I do this manually, with:
sudo du -h --max-depth=1 | sort -n -r
And I see which folder are the higher and enter on it and go on. But I would like to this automatically.
Any idea ?
tdu
(linked from ncdu web page) parsesdu
output. So just rundu
on every machine, analyze on any other. Also, feel free to add an answer to the linked question if you feel you can add relevant information not already present in any of the other 12 answers.