home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9337 < prev    next >
Encoding:
Text File  |  1992-07-23  |  1.2 KB  |  37 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!usc!cs.utexas.edu!torn!cunews!nrcnet0!bnrgate!bmerh85!bmers246!hojjat
  3. From: hojjat@bmers246.uucp (Hojjat Salemi)
  4. Subject: Re: File Creation Date
  5. Message-ID: <1992Jul23.141754.23306@bmerh85.bnr.ca>
  6. Sender: news@bmerh85.bnr.ca (Usenet News)
  7. Organization: Bell-Northern Research, Ottawa, Canada
  8. References: <4185@astroatc.UUCP>
  9. Date: Thu, 23 Jul 92 14:17:54 GMT
  10. Lines: 25
  11.  
  12. In article <4185@astroatc.UUCP> weeks%astroatc.UUCP@spool.cs.wisc.edu (Patrick Weeks) writes:
  13. >
  14. >    Is there a way to show a file original creation date in unix or does
  15. >it only keep track of its last update??
  16. >
  17. >
  18. >
  19. >                        Ghostwheel
  20. >
  21. >internet:  weeks%astroatc.uucp@spool.cs.wisc.edu
  22. >
  23. Your question is one of the FAQs. UNIX FAQs are posted monthly. 
  24.  
  25. 1)  How do I find out the creation time of a file?
  26.  
  27.     You can't - it isn't stored anywhere.  Files have a last-modified
  28.     time (shown by "ls -l"), a last-accessed time (shown by "ls -lu")
  29.     and an inode change time (shown by "ls -lc"). The latter is often
  30.     referred to as the "creation time" - even in some man pages -  but
  31.     that's wrong; it's also set by such operations as mv, ln,
  32.     chmod, chown and chgrp.
  33.  
  34.     The man page for "stat(2)" discusses this.
  35.  
  36.  
  37.