Sorting the sizes of your output of “du” (Disk Usage) is as easy as:
du -s * | sort -n -r | more
Breaking down:
du -s * = DiskUsage <do not enter into sub-directories> <all files in current directory>
Legenda:
- | = PIPE
- sort -n -r = SORT <Numerically> <Revered>
- more = PageByPage