where is the recently accessed file list stored
hakan at koseoglu.org
Tue Jul 20 07:25:40 UTC 2010
2010/7/20 yu huang <hybryant at hotmail.com>:
> I want to have a menu item in places where records the recent accessed
> I am wondering where is the recent accessed document list stored in ubuntu?
> How does ubuntu track the recently accessed file?
Unless turned off, access time for each file is stored on disk. For
performance reasons this can be turned off but it is not done by
default on Ubuntu.
You can use atime option on many commands.
ls -la --time=atime
will show the last access time for all files in that directory.
Similarly you can search for a file modified at a particular date or
older/newer than a certain date using the find command:
These are the options in the command "find" you might find useful:
Measure times (for -amin, -atime, -cmin, -ctime, -mmin,
and -mtime) from the beginning of today rather than from 24 hours
ago. This option only
affects tests which appear later on the command line.
File was last accessed n*24 hours ago. When find
figures out how many 24-hour periods ago the file was last accessed,
any fractional part is ignored,
so to match -atime +1, a file has to have been accessed
at least two days ago.
File's status was last changed n minutes ago.
File's status was last changed more recently than file
was modified. If file is a symbolic link and the -H option or the -L
option is in effect, the
status-change time of the file it points to is always used.
File's status was last changed n*24 hours ago.
See the comments for -atime to understand how rounding affects the
interpretation of file status
File's data was last modified n*24 hours ago. See the
comments for -atime to understand how rounding affects the
interpretation of file modification
File's data was last modified n minutes ago.
Hakan (m1fcj) - http://www.hititgunesi.org
More information about the ubuntu-users