From owner-freebsd-questions@FreeBSD.ORG Wed Sep 22 18:23:12 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58CE616A4CE for ; Wed, 22 Sep 2004 18:23:12 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0092143D53 for ; Wed, 22 Sep 2004 18:23:11 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i8MIN7jE019134 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 22 Sep 2004 19:23:07 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)i8MIN60e019133; Wed, 22 Sep 2004 19:23:06 +0100 (BST) (envelope-from matthew) Date: Wed, 22 Sep 2004 19:23:06 +0100 From: Matthew Seaman To: Drew Tomlinson Message-ID: <20040922182306.GA18680@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Drew Tomlinson , FreeBSD Questions 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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline In-Reply-To: <4151BABA.30300@mykitchentable.net> User-Agent: Mutt/1.4.2.1i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Wed, 22 Sep 2004 19:23:07 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040904, clamav-milter version 0.75l on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: FreeBSD Questions Subject: Re: Find Command Syntax X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 18:23:12 -0000 --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=20 > -ctime is "change of file status" and -mtime is "last modification=20 > time". I think I understand what modification means (changing the=20 > contents of the file) but what is "change of file status"? In my=20 > particular situation, while reviewing my spam folder for possible "ham",= =20 > my IMAP client may change the message status from unread to read. How=20 > 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=3D%Sc mtime=3D%Sm %N' -t '%c' * Usually mtime and ctime will be exactly the same. Cheers, Matthew =09 --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --YiEDa0DAkWCtVeE4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBUcMKiD657aJF7eIRAiNNAKCBDY5GbX/waA58WOlndLpJYA2HQwCgkj6b mjmewhm4fGycvghgbfnLVbY= =P+Hl -----END PGP SIGNATURE----- --YiEDa0DAkWCtVeE4--