DOS equivalent to unix ls -ltr

ls -ltr gives you a list of files sorted in order of the time they were last modified, with the most recent showing up last.

I use this quite a lot to locate recently updated log files, a file I’ve just edited etc.

The DOS equivalent would be:

dir /OD

The /O is order by. The ‘D’ is date.

Advertisements