Sort files with ls by last modified date and time.

By | 30/12/2013

The ls –help come with this args :
-t sort by modification time, newest first
You need to pass the -t option to the ls command to sort by time modified.

Also if you want to reverse the order of the sort then use -r option.

Let see one example:

with iso time style

with full-iso time style

with long-iso time style

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.