Tagged as: linux

If there are many files in the current directory, it can be hard to find the oldest or newest files.

Luckily, ls allows us to do this easily:

  1. Most recent modification time first:

    ls -t
  2. Oldest file first:

    ls -tr

More information is available in the manual for ls, available through man:

man ls