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 ?