Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcvax!ukc!etive!hwcs!zen!frank From: frank@zen.co.uk (Frank Wales) Newsgroups: comp.unix.questions Subject: Re: Why does "file" change the creation time on some Unix systems? Summary: Look, ma! No non-included text! [No fascist inewses here!] Message-ID: <1632@zen.co.uk> Date: 2 Jul 89 17:14:27 GMT References: <95@anasaz.UUCP> <2268@faline.bellcore.com> <1850@auspex.auspex.com> <4217@tekcrl.LABS.TEK.COM> Reply-To: frank@zen.co.uk (Frank Wales) Organization: Zengrange Limited, Leeds, England Lines: 29 In article <4217@tekcrl.LABS.TEK.COM> terryl@tekcrl.LABS.TEK.COM writes: >In article <1850@auspex.auspex.com> guy@auspex.auspex.com (Guy Harris) writes: >> >If so, to what "creation" time does the -c option of ls refer? >> >>It doesn't refer to *ANY* "creation" time, it refers to the inode change >>time. If your manual says it refers to the creation time, either your >>manual is wrong or you're running a pretty bizarre version of UNIX. > > Well, then, Guy, I guess you can call 4.3 BSD+NFS "a pretty bizarre >version of UNIX"; to wit, I quote part of the standard ls(1) man page: > > -c Use time of file creation for sorting or printing. In article <22874@iuvax.cs.indiana.edu> (Steve Hayman) writes: >Subject: Frequently Asked Questions about Unix - with Answers. > >11) How do I find out the creation time of a file? > > You can't - it isn't stored anywhere. Files have a last-modified > time (shown by "ls -l"), a last-accessed time (shown by "ls -lu") > and an inode change time (shown by "ls -lc"). The latter is often > referred to as the "creation time" - even in some man pages - but > that's wrong; it's the time the file's status was last changed, > either by writing or changing the inode (via mv or chmod, etc...). > > The man page for "stat(2)" discusses this. -- Frank Wales, Systems Manager, [frank@zen.co.uk<->mcvax!zen.co.uk!frank] Zengrange Ltd., Greenfield Rd., Leeds, ENGLAND, LS9 8DB. (+44) 532 489048 x217