FreeKB - Linux FIND command - date modified (-mtime)
Linux FIND command - date modified (-mtime)

Home > Search


If you are not familiar with the find command, check out our Getting Started article.

To return files that were modified 14 or more days ago.

find / -mtime +14

 

To include the date and time the file was last modified in the output.

find / -exec stat --format  '%y %n' "{}" \;

 

To include the date and time the file was last read in the output.

find / -exec stat --format  '%x %n' "{}" \;

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter 3780d in the box below so that we can be sure you are a human.




Comments