This is a discussion on last modified file time within the Linux Security forums, part of the System Security and Security Related category; How do I find out the time/date a file was last modified (ls -al does not seem to show ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Tue, 2005-06-21 at 23:19 +0000, Jacco 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) > > thanks > 'man ls' and look for the '--time' flag ;) -- Jon |
|
|||
|
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" |