du command in linux sort by size in gb code example
Example 1: ubuntu du sort by dir size
du -Sh /path/to/dir | sort -rh | head -20
Example 2: linux show large folders
du -a | sort -n -r | head -n 5
du -Sh /path/to/dir | sort -rh | head -20
du -a | sort -n -r | head -n 5