Re: last modified file time
From: Bill Marcum (bmarcum_at_iglou.com.urgent)
Date: 06/22/05
- Previous message: Jon: "Re: last modified file time"
- In reply to: Jacco: "last modified file time"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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"
- Previous message: Jon: "Re: last modified file time"
- In reply to: Jacco: "last modified file time"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|