tfe Homepage


Find last edited files in directory (linux)

Little tip of the day, to find the last 100 files edited in a directory (and recursively subdirectory):

$ find . -printf "%T@ (%Tc) : %p
"|sort -n| tail -100

It will display the list of files, with 3 fields:

  • Modified time (in seconds)
  • Modified time in human readable format
  • The file path+name