How do I find files older than 1 year in Unix?

How do I find files older than 1 year in Unix?
Answer
3 Answers. You could start by saying find /var/dtpdev/tmp/ -type f -mtime +15 . This will find all files older than 15 days and print their names. Optionally, you can specify -print at the end of the command, but that is the default action.
 

Tìm kiếm

Back
Top