home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / sysv386 / 14505 < prev    next >
Encoding:
Internet Message Format  |  1992-09-15  |  1.7 KB

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