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