Difference of 'mtime' and 'ctime'

Leslie Mikesell les at chinet.chi.il.us
Mon Mar 13 07:44:59 AEST 1989


In article <9316 at orstcs.CS.ORST.EDU> ghe at nucthy.physics.orst.edu (Guangliang He) writes:

>          -mtime n        True if the file has been modified in n
>                          days.
>          -ctime n        True if the file has been changed in n days.
>Can any one out there tell the difference of these two options? 

Mtime is the modification time of the contents of the file itself.  Ctime
is the modification time of the inode, which will include things like
mv'ing the file as well as anything that changes mtime (but not atime).

Les Mikesell



More information about the Comp.unix.questions mailing list