Linux: All files modified within 30 days

I want a file named "recentlymodified.txt" to be created, containing a list of ALL files within /home/mydir/ (recursively) that have been modified within the past 30 days.
LVL 16
hankknightAsked:
Who is Participating?
 
medveddCommented:
find /home/mydir/ -mtime -30 -print >recentlymodified.txt
0
 
mohansahuCommented:
Hi,

Use the below command  to find last modified  30 days ago.

find /home/mydir -iname "*.txt" -mtime -30 -print

MS

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.