Re: last modified file time

From: Bill Marcum (bmarcum_at_iglou.com.urgent)
Date: 06/22/05

  • Next message: MONROUX philippe: "Geo::IP missing and little question.[prelude NIDS]"
    Date: Tue, 21 Jun 2005 20:55:48 -0400
    
    

    On Tue, 21 Jun 2005 23:19:22 GMT, Jacco
      <jacco425@hotmail.com> wrote:
    > How do I find out the time/date a file was last modified (ls -al does not
    > seem to show it - it appears to show creation time)
    >
    You're mistaken, Unix filesystems don't even store a creation time. Each
    file has three timestamps called mtime, ctime and atime. See "man ls",
    "man touch" or "man find". "ls -l" shows the mtime. You can see ctime
    with "ls -lc" or atime with "ls -lu". Mtime is updated when you change
    a file's contents, ctime when you change its name or permissions. Atime
    is when a file was last accessed.

    -- 
    "Hello, zeeba neighba!"  --crocodile in "Pearls Before Swine"
    

  • Next message: MONROUX philippe: "Geo::IP missing and little question.[prelude NIDS]"

    Relevant Pages

    • Re: Process runtime
      ... and 'ls -ldc' shows ctime, which is not creation time, ... then atime might only be updated if it is necessary to ... time stamps have not been updated since /proc was mounted. ... The behaviour described by Tim (creation time reported by ...
      (comp.unix.shell)
    • Re: find: files *created* before a specified time ???
      ... Return the system's ctime which, ... is the creation time for path. ... "Millions of Chinese speak Chinese, ...
      (Debian-User)
    • Re: File Created Date?
      ... Gordon Burditt wrote: ... them don't keep track of the creation time of the file. ... On filesystems where both exist, *mtime*, not ctime ...
      (comp.lang.php)
    • Re: File Created Date?
      ... It's not about Operating Systems, but File Systems (FAT, ... them don't keep track of the creation time of the file. ... On filesystems where both exist, *mtime*, not ctime ...
      (comp.lang.php)
    • Re: How do I get the creation date of a file?
      ... atime, ctime and mtime. ... There is no such thing as a creation time of a file. ... That said, the creation time is the initial modification time in so much as that it doesn't record when the file was created, but rather, when it was created on the filesystem. ...
      (comp.lang.ruby)