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

James Manning jmm at sublogic.com
Mon Sep 22 18:32:56 EDT 2003


> 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



More information about the TriLUG mailing list