[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Disabling Access Time
>
> 'atime' is the time the file was last accessed. There are three timestamps
> the filesystem keeps - atime, ctime (created time), mtime (modified time).
> You can display these with stat(1).
>
Caution: ctime is /not/ creation time, it's the inode change time. As well
as creating a file, this will change if you modify the status of a file in
any way, e.g., chmod, chown, chgrp, ln:
[66%][bubbles][chris] >touch mytest
[67%][bubbles][chris] >ls -lc mytest
-rw-r--r-- 1 chris users 0 Sep 13 20:41 mytest
[68%][bubbles][chris] >date
Sat Sep 13 20:41:39 BST 2003
[69%][bubbles][chris] >date
Sat Sep 13 20:42:01 BST 2003
[70%][bubbles][chris] >chmod 700 mytest
[71%][bubbles][chris] >ls -lc mytest
-rwx------ 1 chris users 0 Sep 13 20:42 mytest
There is no file creation time. (ls -lc shows the ctime; by default, ls -l
shows the mtime. ls -lu will show the atime. Just doing a "less", "cat" or
other basic thing will modify the atime).
Chris...
--
\ Chris Johnson \
\ cej [at] nightwolf.org.uk ~-----,
\ http://cej.nightwolf.org.uk/ ~-----------------------------------,
\ Redclaw chat - http://redclaw.org.uk - telnet redclaw.org.uk 2000 \____
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.