Sort Directory by File Size Gregg May 1, 2023 To sort files in a directory and to list them by the biggest file first: $ du -a | sort -n -r | more Alternatively you can use: $ du -s * | sort -n -r | more Cli Motd