largest directories linux code example
Example 1: ubuntu du sort by dir size
du -Sh /path/to/dir | sort -rh | head -20
Example 2: find largest folders centos
# du -Sh | sort -rh | head -5
du -Sh /path/to/dir | sort -rh | head -20
# du -Sh | sort -rh | head -5