home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!usc!cs.utexas.edu!torn!cunews!nrcnet0!bnrgate!bmerh85!bmers246!hojjat
- From: hojjat@bmers246.uucp (Hojjat Salemi)
- Subject: Re: File Creation Date
- Message-ID: <1992Jul23.141754.23306@bmerh85.bnr.ca>
- Sender: news@bmerh85.bnr.ca (Usenet News)
- Organization: Bell-Northern Research, Ottawa, Canada
- References: <4185@astroatc.UUCP>
- Date: Thu, 23 Jul 92 14:17:54 GMT
- Lines: 25
-
- In article <4185@astroatc.UUCP> weeks%astroatc.UUCP@spool.cs.wisc.edu (Patrick Weeks) writes:
- >
- > Is there a way to show a file original creation date in unix or does
- >it only keep track of its last update??
- >
- >
- >
- > Ghostwheel
- >
- >internet: weeks%astroatc.uucp@spool.cs.wisc.edu
- >
- Your question is one of the FAQs. UNIX FAQs are posted monthly.
-
- 1) 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 also set by such operations as mv, ln,
- chmod, chown and chgrp.
-
- The man page for "stat(2)" discusses this.
-
-
-