linux list files by size code example
Example 1: list file size as mb
ls -l --block-size=M
Example 2: ls by size
ls -lS # -l to see list with sizes, -S to sort
ls -l --block-size=M
ls -lS # -l to see list with sizes, -S to sort