[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Linux: All files modified within 30 days

Posted on 2011-09-08
2
Medium Priority
?
367 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 800 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 1200 total points
ID: 36502478
find /home/mydir/ -mtime -30 -print >recentlymodified.txt
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month19 days, 14 hours left to enroll

873 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