Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mtime

Status
Not open for further replies.

Janghyegyung

Technical User
Aug 20, 2001
42
KR
$date
Wed Oct 10 13:53:05 GMT 2001
$ find /log2 -mtime 1 -exec ls -l {} \;
--> Output
-rw-rw-r-- 1 root other 308576592 Oct 9 00:10 /log2/09Oct2001-00:10:02.log
-rw-rw-r-- 1 root other 27001760 Oct 9 00:10 /log2/09Oct2001-00:10:02.logptr
-rw-rw-r-- 1 root other 4096 Oct 9 00:10 /log2/09Oct2001-00:10:02.alogptr

I thought -mtime +1 instead of -mtime 1 to get the output like this.

I know the times are in days..
But How exactly means that mtime 1 / mtime -1 / mtime +1?


 
Hi,

-mtime Number : Evaluates to the value True if the file has been modified in Number-1 to Number multiples of 24 hours

Regards

Fcail
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top