How to sort Linux ls command file output
By Alvin Alexander. Last updated: June 3 2016
A couple of days ago I was asked how to sort the output from the Unix and Linux ls command. Off the top of my head I knew how to sort the ls output by file modification time, and also knew how to sort ls with the Linux sort command, but I didn't realize there were other cool file sorting options available until I looked them up.
In this short tutorial I'll demonstrate the Unix/Linux ls command file sorting options I just learned.