How to find recently modified files in Linux?

Hi, new here!

I’d like to know, what would be the commands to find all files which have not been modified within 1 week.

Thank you in advance for your help!

1 Like

find /home/you -name "*.txt" -mtime -60 -print

-60 is 60 days. You can find more info here::
https://www.cyberciti.biz/faq/howto-finding-files-by-date/

This should help. You can adjust it for your liking.

1 Like

+1 @Ben .

Since it’s missing, I will add that example to the list of find command examples.

1 Like

Welcome to the community!

2 Likes

Thank you. This works.

1 Like