Solved

Linux: All files modified within 30 days

Posted on 2011-09-08
2
353 Views
Last Modified: 2013-12-16
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
Comment
Question by:hankknight
2 Comments
 
LVL 6

Assisted Solution

by:mohansahu
mohansahu earned 200 total points
ID: 36502474
Hi,

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

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

MS

0
 
LVL 16

Accepted Solution

by:
medvedd earned 300 total points
ID: 36502478
find /home/mydir/ -mtime -30 -print >recentlymodified.txt
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Fine Tune your automatic Updates for Ubuntu / Debian
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now