home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!cs.ucf.edu!tarpit!bilver!bill
- From: bill@bilver.uucp (Bill Vermillion)
- Newsgroups: comp.unix.sysv386
- Subject: Re: Difference between mtime and ctime
- Message-ID: <1992Sep15.150200.22325@bilver.uucp>
- Date: 15 Sep 92 15:02:00 GMT
- References: <1992Sep12.220927.1334@wariat.org>
- Organization: W. J. Vermillion - Winter Park, FL
- Lines: 33
-
- In article <1992Sep12.220927.1334@wariat.org> zbig@wariat.org (Zbigniew J. Tyrlik) writes:
-
- >I am setting some routines for backup purposes. Well, I am having
- >troubles understanding difference between output of find -ctime
- >and find -mtime. Maybe it is my language, but TFM page does say
- >only that one is modification time and the other time when file
- >was modified.
-
- Well at least we can tell you weren't reading the SCO Xenix manuals,
- they say that -ctime is the time the file was created. Really wrong.
-
- And I have just checked three differn't set of SysV manuals, and they
- all say the same things as you reported. Unfortunately, they are
- wrong.
-
- >Can someone be so kind and send me 2-3 sentences of explanation?
- >I want to use it to find files changed during last 24 hours, to
- >backup them....
-
- If you want to find out what files have had their CONTENTS changed,
- use -mtime - that is the time the file was last written - even though
- nothing may have changed. A user may have read a text file in and
- written it out with no changes.
-
- -ctime is the INODE change time. That is the last time the inode was
- changed, eg permissions changed, links, etc.
-
-
-
- --
- Bill Vermillion - bill@bilver.oau.org bill.vermillion@oau.org
- - bill@bilver.uucp
- - ..!{peora|ge-dab|tous|tarpit}!bilver!bill
-