Atime

Atime From Hackepedia

Time of last access of a file, the information is taken from the inode, only if the filesystem doesn't have the noatime option.

$ stat -s $file | tr ' ' '\n' | grep atime
st_atime=1130490958
$ date -r 1130490958
Fri Oct 28 11:15:58 CEST 2005
$ ls -luT $file
-rw-r--r-- 1 root wheel 33554432 Oct 28 11:15:58 2005 file

It can be helpful reading the atime of a script to see when it was last run. Perhaps an rc script to see when a service was started/stoppped/restarted.


German - Von Hackepedia

Die atime is die Zeit wo eine Datei zuletzt gelesen wurde. Die Information kommt aus der Meta-datei (inode) und nur wenn das Dateisystem nicht die noatime mount-option gesetzt hat.

Es kann helfen, die atime von einem Script zu lesen um zu wissen wann dieses Script zuletzt gelaufen ist. Ein Beispiel sind die RC Dateien die dann zeigen wann sie gestartet, gestoppt und wieder neugestartet sind.

DeutschEnglish
Dateisystemfilesystem
Dateifile