Display all the files in current directory sorted by size?

ls -l | grep ‘^-‘ | awk ‘{print $5,$9}’ |sort -n|awk ‘{print $2}’

Related Questions

Category: UNIX Interview Questions.