How do I search for a file by date in Linux?

Giao Linh

New member
How do I search for a file by date in Linux?
Answer
You can use
-mtime option. It returns list of file if the file was last accessed N*24 hours ago.
…
Find Files By Access, Modification Date / Time Under Linux or…
  1. -mtime +60 means you are looking for a file modified 60 days ago.
  2. -mtime -60 means less than 60 days.
  3. -mtime 60 If you skip + or – it means exactly 60 days.
 

Tìm kiếm

Back
Top