Write a command to display the files in the directory by file size?

ls -l | grep ‘^-‘ |sort -nr -k 5

Category: UNIX Interview Questions.