Solved

Linux: All files modified within 30 days

Posted on 2011-09-08
2
354 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

813 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

14 Experts available now in Live!

Get 1:1 Help Now