• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 369
  • Last Modified:

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.
0
hankknight
Asked:
hankknight
2 Solutions
 
mohansahuCommented:
Hi,

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

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

MS

0
 
medveddCommented:
find /home/mydir/ -mtime -30 -print >recentlymodified.txt
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now