bash get biggest file in folder code example
Example 1: find large files in ubuntu
sudo du -a /your_dir/ | sort -n -r | head -n 20
Example 2: find largest folders centos
# du -Sh | sort -rh | head -5
sudo du -a /your_dir/ | sort -n -r | head -n 20
# du -Sh | sort -rh | head -5