[NCLUG] shell scripting

Mike Loseke mike at verinet.com
Fri Sep 14 12:52:40 MDT 2001


Thus spake J. Paul Reed:
> On Thu, 13 Sep 2001, Eric Brunson wrote:
> 
> > > find /your/dir -ctime 1 -print
> >
> > That should probably be -mtime, not -ctime
> 
> Hey Mike:
> 
> How's this for service? :-)
> 
> Since my solution involved ctime, is the difference between ctime and mtime
> is that ctime will get set upon an operation like chmod, and mtime will
> only get set if you actually modify the contents of the file?
> 
> I'm curious now...

 ctime, as tested by find, is related to the status of the file
(permissions, timestamp, name?), whereas mtime refers to the data within
the file. And, of course, atime is when the file was last accessed.

-- 
                  | Any resemblance between the above and my own
   Mike Loseke    | views is non-deterministic.  The question of
 mike at verinet.com | the existence of views in the absence of anyone
                  | to hold them is left as an exercise to the reader.



More information about the NCLUG mailing list