Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

find -atime 1

Status
Not open for further replies.

hfaix

MIS
Nov 25, 2003
596
US
What represents an "access" to a file? In other words, when I do an ls on a filename, am I accessing the file? Or is just vi, cat, more, etc....

Any help would be greatly appreciated.

thanks!


"
-atime Number Evaluates to the value True if the file has been accessed in Number-1 to Number multiples of 24 hours. For example, -atime 2 is true if the file has been accessed within 24 to 48 hours.
 
It's the execution of an open() on the file, so ls won't effect the atime of the files listed, other than the directory being listed. It is, after all, a file and it has to be opened to list it's contents. At least this is the case for JFS. I haven't looked under the hood of JFS2 enough to know if the same applies there.

Some processes, most notably backup, restore atime to its previous value after accessing files.



Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
With the "istat" command or with "ls -lu".

Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
Rod, you rule. Sometimes I forget about the simple stuff like ls -lu .

Thanks again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top