[TriLUG] Re: how to tell when a file was last viewed

Ryan Wheaton ryan.wheaton at comcast.net
Mon Sep 22 18:43:10 EDT 2003


No, they both do the same thing (atime), but stat is what I was looking 
for.

i knew it was in my head somewhere, just didn't know which sector :-)

-r

On Monday, Sep 22, 2003, at 16:32 America/Denver, James Manning wrote:

>> i'm an idiot.  sorry for wasting your time
>>
>> man stat
>
> AFAICT you were looking for the access time in either case.  Assuming
> you don't have a mount with "noatime", were you really getting
> different results from ls --time=access and stat's atime?
>
> IOW, was your initial email's ls --time=access wrong somehow?
>
> jmm at sublogic:/home/jmm% ls -l --time=access wget-log ; stat -c "%x" 
> wget-log
> -rw-r--r--    1 jmm      jmm          4166 Sep 16 01:03 wget-log
> Tue Sep 16 01:03:49 2003
>
> -- 
> James Manning <http://www.sublogic.com/james/>
> GPG Key fingerprint = B913 2FBD 14A9 CE18 B2B7  9C8E A0BF B026 EEBB 
> F6E4
> -- 
> TriLUG mailing list        : 
> http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ  : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> TriLUG PGP Keyring         : http://trilug.org/~chrish/trilug.asc
>




More information about the TriLUG mailing list