Re: Last time file accessed/used/executed, but not modified
From: Dances With Crows (danSPANceswitTRAPhcrows_at_gmail.com)
Date: 08/24/05
- Next message: Nico Kadel-Garcia: "Re: ftp problem to windows 2000 server"
- Previous message: Apostolos P. Tsompanopoulos: "Re: Last time file accessed/used/executed, but not modified"
- In reply to: David Smith: "Last time file accessed/used/executed, but not modified"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 24 Aug 2005 11:51:37 -0500
["Followup-To:" header set to comp.os.linux.misc.]
On Wed, 24 Aug 2005 08:06:23 -0700, David Smith staggered into the Black
Sun and said:
> Is there any utility that will tell me the last time a file was
> accessed
/bin/stat -c '%x' filename
Also try %X. Note that this information will be useless if your
filesystem was mounted with noatime. atime info is usually not very
useful, so lots of people mount their filesystems with noatime for a
slight performance improvement.
> or used/executed (not necessarily modified)
? Only 3 times are stored, atime, ctime, and mtime. atime is the last
access time. ctime is the last time the file had a status change, like
if it was chmodded or chattred. mtime is the last time the file was
modified.
-- Matt G|There is no Darkness in Eternity/But only Light too dim for us to see Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong http://www.brainbench.com / "He is a rhythmic movement of the -----------------------------/ penguins, is Tux." --MegaHAL
- Next message: Nico Kadel-Garcia: "Re: ftp problem to windows 2000 server"
- Previous message: Apostolos P. Tsompanopoulos: "Re: Last time file accessed/used/executed, but not modified"
- In reply to: David Smith: "Last time file accessed/used/executed, but not modified"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|