find folder with large size linux code example
Example 1: linux how to know whhich directory used more soace
$ du -h --max-depth=1 | sort -hr
Example 2: find large files in ubuntu
sudo du -a /your_dir/ | sort -n -r | head -n 20
$ du -h --max-depth=1 | sort -hr
sudo du -a /your_dir/ | sort -n -r | head -n 20