Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

How can I sort the output of 'ls' by last modified date?

How can I sort the output of ls by the last modified date?
by

2 Answers

espadacoder11
ls -t
or (for reverse, most recent at bottom):

ls -tr
sandhya6gczb
Try this: ls -ltr. It will give you the recent to the end of the list

Login / Signup to Answer the Question.