find the top 10 largest directory linux code example
Example 1: find large files in ubuntu
sudo du -a /your_dir/ | sort -n -r | head -n 20
Example 2: centos largest folders
# du -Sh | sort -rh | head -5
sudo du -a /your_dir/ | sort -n -r | head -n 20
# du -Sh | sort -rh | head -5