The UNIX and Linux Forums  

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



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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Problem with find command when used with mtime arunkumar_mca UNIX for Dummies Questions & Answers 4 01-08-2008 12:37 AM
problem with find and mtime arunkumar_mca UNIX for Dummies Questions & Answers 4 11-05-2007 07:41 AM
find . -mtime topcat8 UNIX for Dummies Questions & Answers 1 04-26-2006 11:55 AM
find -mtime off by one day? ceanntrean UNIX for Dummies Questions & Answers 4 08-24-2005 08:46 PM
find -mtime +2? means after 48 hours.. yls177 UNIX for Dummies Questions & Answers 1 11-08-2002 07:59 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-09-2008
Rajat Rajat is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 29
find -mtime query

Hello everyone,
I have got two queries:
1) I want to do some work on files that were last modified yesterday.
Will find ... -mtime -2 be correct or -mtime-1?
2)What about finding files that were modified today? Will it be -mtime -0 or -mtime -1?
Thanks.
  #2 (permalink)  
Old 07-09-2008
Franklin52 Franklin52 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,342
The usage of the -mtime option of the find command:


Code:
-mtime n

 n : exact n*24 hours ago.
-n : under n* 24 hours.
+n : over n*24 hours.

Why don't you touch some files to try it out?

Regards
Closed Thread

Bookmarks

Tags
mtime

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 On




All times are GMT -4. The time now is 05:38 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-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0