last modified file time

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 ...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-22-2005
Jacco
 
Posts: n/a
Default last modified file time

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

Reply With Quote
  #2 (permalink)  
Old 06-22-2005
Jon
 
Posts: n/a
Default Re: last modified file time

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

Reply With Quote
  #3 (permalink)  
Old 06-22-2005
Bill Marcum
 
Posts: n/a
Default Re: last modified file time

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"
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 04:14 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0