Date: Wed, 22 Sep 2004 15:47:48 -0700 From: Drew Tomlinson <drew@mykitchentable.net> To: Matthew Seaman <m.seaman@infracaninophile.co.uk> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Find Command Syntax Message-ID: <41520114.7080607@mykitchentable.net> In-Reply-To: <20040922182306.GA18680@happy-idiot-talk.infracaninophile.co.uk> References: <4151998F.205@mykitchentable.net> <20040922153904.GA16792@happy-idiot-talk.infracaninophile.co.uk> <4151A296.90505@mykitchentable.net> <20040922173451.GA18351@happy-idiot-talk.infracaninophile.co.uk> <4151BABA.30300@mykitchentable.net> <20040922182306.GA18680@happy-idiot-talk.infracaninophile.co.uk>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On 9/22/2004 11:23 AM Matthew Seaman wrote: >On Wed, Sep 22, 2004 at 10:47:38AM -0700, Drew Tomlinson wrote: > > > >>OK, I'm trying to understand the difference. According to the manual >>-ctime is "change of file status" and -mtime is "last modification >>time". I think I understand what modification means (changing the >>contents of the file) but what is "change of file status"? In my >>particular situation, while reviewing my spam folder for possible "ham", >>my IMAP client may change the message status from unread to read. How >>would this affect the actual message file? >> >> > >The ctime entry (originally 'creation time') used to be intended to >record when the file was created. Nowadays it records the last time >the inode for the file changed -- that includes such things as changes >to file permissions, ACLs, option flags etc., but not such things as >modifications to the file contents which don't change the file size a >great deal. > >This status has nothing to do with what your IMAP client reports as >the file status. The ctime concept applies to any file on the system, >no matter what it's used for. IMAP status just records or modifies an >extra header within the message to indicate if it's been read or not. > >Thus reading those messages via IMAP might change mtime but not >ctime. However, I'm not certain of that. You'll have to experiment. >You can print out the ctime and mtime for the files by: > > % stat -f 'ctime=%Sc mtime=%Sm %N' -t '%c' * > >Usually mtime and ctime will be exactly the same. > > Cheers, > > Matthew > > Thank you very much for the explanation. I will use your stat example and do some investigating. Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, & More! http://www.alchemistswarehouse.com [-- Attachment #2 --] 0 *H 010 + 0 *H 0W0 .0 *H 0b10 UZA1%0#U Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0 040918145001Z 050918145001Z0I10UThawte Freemail Member1&0$ *H drew@mykitchentable.net00 *H 0 %>ԤAKijBWՏݱ(3ٔ-ʾ]#O0LI\q$בN&'LZ{v]lQS%!-d i3E.C.I}.U7[,|.Q 4020"U0drew@mykitchentable.net0U0 0 *H S3N;W uDBpT:R}9' ( -P: 6EFNvjȯ!Y;AF|w^jܷi0~uVN {300W0 .0 *H 0b10 UZA1%0#U Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0 040918145001Z 050918145001Z0I10UThawte Freemail Member1&0$ *H drew@mykitchentable.net00 *H 0 %>ԤAKijBWՏݱ(3ٔ-ʾ]#O0LI\q$בN&'LZ{v]lQS%!-d i3E.C.I}.U7[,|.Q 4020"U0drew@mykitchentable.net0U0 0 *H S3N;W uDBpT:R}9' ( -P: 6EFNvjȯ!Y;AF|w^jܷi0~uVN {300?0 0 *H 010 UZA10UWestern Cape10U Cape Town10U Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0) *H personal-freemail@thawte.com0 030717000000Z 130716235959Z0b10 UZA1%0#U Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA00 *H 0 Ħ<UsUNʙZhup[v:aQP 0cZ,p+Z?qV˯<6$*+w=+>@dקe*TH<a@dr` 00U0 0CU<0:08642http://crl.thawte.com/ThawtePersonalFreemailCA.crl0U0)U"0 010UPrivateLabel2-1380 *H HP. fgCL!6-6/P p<ab:~ t%Pb'qW%ݩ9 Oe_N4[5MwV!x!5$F]_eO100i0b10 UZA1%0#U Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA .0 + 0 *H 1 *H 0 *H 1 040922224748Z0# *H 1$wl (-I0R *H 1E0C0 *H 0*H 0 *H @0+0 *H (0x +71k0i0b10 UZA1%0#U Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA .0z*H 1ki0b10 UZA1%0#U Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA .0 *H ~`I%㥢dv]kﰂPg$gyl-ŽcREHsV"K%*ϗYYBO-١9w*~(rV7-}yH))faG^hr~2R3g$'&
