find recently changed files

The newest files in a folder, or those changed in the last minutes or days.

  • files

Steps

  1. ls -lt | head

    the newest here, first

  2. ls -t | head -1

    only the newest one's name

  3. find . -type f -mmin -60

    files changed in the last hour, under here

  4. find . -type f -mtime -2

    changed in the last two days

  5. find . -type f -printf '%T+ %p\n' | sort | tail -20

    the 20 newest under here, with dates (GNU)

Commands used

  • ls
  • find

Each has a page in lore: lore ls opens it.