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
mtime, ctime, and atime Perderabo Tips and Tutorials 2 08-30-2007 06:13 AM
how to find ot ctime , mtime ,atime nilesrex Shell Programming and Scripting 4 08-10-2006 07:51 AM
atime, ctime, mtime somewhere along csize.. moxxx68 UNIX for Dummies Questions & Answers 4 03-02-2005 02:14 PM
Converting regular time to CTIME PGPhantom UNIX for Dummies Questions & Answers 9 08-23-2002 06:47 PM
ctime & find 98_1LE UNIX for Dummies Questions & Answers 1 06-22-2001 12:33 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-28-2004
moxxx68's Avatar
Registered User
 

Join Date: Mar 2004
Posts: 301
Smile mtime vs ctime

i have a slight problem and would appreciate if someone could clarify the confusion.. i use find alot and so far i have done ok.. but it just struck me a couple of days ago that I am not quite sure what the difference between the modification time and the change time as in ctime and mtime and especially cnewer and newer.. as far as I can see I have tried to stat some of my files and most of the time all three access change and modification are the same.. no clues as to the differences from the man pages... which talks about modifcation and change isn't that the same.
any examples clues or feedback welcome
thanx moxx68
__________________
moxxx68
http://www.estarinformado.com.ar/apicmaxmiel/bee-diez.gif
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 10-29-2004
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
ctime refers to changes made to the file's inode (such as changing permissions, etc). mtime refers to changes to the data within the file. So cnewer will use a reference files inode change time for the comparision, whereas newer will use a reference files data modification time.

Some manual pages are very vague and don't make a clear distinction, so your confusion is understandable!

FYI, there's also atime, which refers to file access time. Also, there is, unfortunately (and to the best of my knowledge), no way of finding file creation time through an inode.

Cheers
ZB
Reply With Quote
  #3 (permalink)  
Old 11-06-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,454
See this thread.
Reply With Quote
  #4 (permalink)  
Old 11-06-2004
moxxx68's Avatar
Registered User
 

Join Date: Mar 2004
Posts: 301
Thumbs up thanx guys

thank you for your input
moxxx68
__________________
moxxx68
http://www.estarinformado.com.ar/apicmaxmiel/bee-diez.gif
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:42 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0