Good Linux question — answering as the UphillTech team:
Simply use something like: ls -lS /path/to/folder/ Capital S . This will sort files by size. Also see: man ls -S sort by file size If you want to sort in reverse order, just add -r switch. Update: To exclude directories (and provided none of the file names or symlink targets contain newline characters): ls -lS | grep -v 'd' Update 2: I see now how it still shows symbolic links, which could be folders. Symbolic links always start with a letter l, as in link. Change the command to filter for a - . This should only leave regular files: ls -lS | grep '^-' On my system this only shows regular...
Full answer by delh: https://unix.stackexchange.com/a/53738 (CC BY-SA 3.0).
Need Linux help for your business? UphillTech.