Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google site



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-23-2007
Registered User
 

Join Date: Oct 2007
Location: California
Posts: 27
Searching files by last accessed time

How can I search for files by last accessed time? I want to see files accessed in the last 24 hours, for example...or even less time, maybe in the last 3 hours?

Thank you in advance,

Trellot
Sponsored Links
  #2 (permalink)  
Old 11-23-2007
Registered User
 

Join Date: Jul 2006
Posts: 141
find . -atime n*24 hrs ago
  #3 (permalink)  
Old 11-23-2007
Registered User
 

Join Date: Oct 2007
Location: California
Posts: 27
Quote:
Originally Posted by pbsrinivas View Post
find . -atime n*24 hrs ago
I'm getting the following message:

find: invalid argument `n*24' to `-atime'

Something I've done wrong here?

Trellot
  #4 (permalink)  
Old 11-23-2007
Read Only
 

Join Date: Nov 2007
Posts: 165
"find . -atime -2" means find files accessed within the last 2 days.
  #5 (permalink)  
Old 11-23-2007
cassj's Avatar
cassj cassj is offline VIP Member  
Supporter
 

Join Date: Jul 2003
Location: Interweb
Posts: 109
man find

You will find explanations for time switches such as these in bash:
-amin n
-anewer file
-atime n
-cmin n
-cnewer file
-ctime n
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
awk searching between two files mac7 Shell Programming and Scripting 1 03-12-2008 12:50 PM
Find files not accessed on a remote server and delete - Help! bond_bhai Shell Programming and Scripting 1 07-17-2007 06:59 AM
Searching Files ronald_brayan UNIX for Advanced & Expert Users 12 10-20-2006 09:50 AM
getting last accessed and modified time together raku05 Shell Programming and Scripting 1 09-22-2005 10:15 AM
Searching files..? nickaren UNIX for Dummies Questions & Answers 4 09-05-2003 04:21 PM



All times are GMT -4. The time now is 09:40 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2010. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0