Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-14-2010, 05:57 AM   #1
LQ Newbie
Registered: May 2010
Posts: 1

Rep: Reputation: 0
Command to find all of the files which have been accessed within the last 30 days

Command to find all of the files which have been accessed within the last 30 days?
Old 05-16-2010, 02:32 AM   #2
LQ Newbie
Registered: Sep 2005
Location: Tokyo, Japan
Distribution: Mac, Ubuntu, Debian and Centos
Posts: 28

Rep: Reputation: 16
Try something like:
find * -mtime -30

"-30" means that it was modified "less than 30 days ago"
"+30" means that it was modified "more than 30 days ago"

Hope this is helpful.

edit: use "atime" for access time (the above example is for the modification time)

Last edited by zugvogel; 05-16-2010 at 02:34 AM. Reason: corrected: mis-read the question


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find/grep/wc command to find matching files, print filename and word count dbasch Linux - Newbie 10 09-14-2009 06:55 PM
Script: purge files more than N days old. Need Non Recursive Find explore.s AIX 3 12-04-2008 08:24 AM
Using find and rm command to delete files over x days old 200mg Linux - Newbie 16 09-03-2008 07:41 PM
How to Find and remove 7 days before modified/created files neel.gurjar Linux - Software 2 05-14-2008 09:17 PM
rsync files accessed under 30 days 0ddba11 Linux - General 3 11-03-2005 07:59 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration