Monday, July 03, 2006

Unix : Sorting directory by date (ls -ltr)

Almost everyone knows the

ls -l

command to display information about the contents of a directory. Sometimes you need to display it in date order so

ls -lt

To display in ascending date order (i.e. most recent last)

ls -ltr

Enjoy!

No comments: