[SunHELP] File creation time

Doug McLaren dougmc at frenzy.com
Thu Mar 13 22:26:42 CST 2003


On Mon, Mar 03, 2003 at 09:34:08PM -0500, Katherine Strojny wrote:

| Does a UFS inode contain a field for file creation date & time, distinct
| from last mod time?   I couldn't find the field in
| /usr/include/sys/fs/ufs_inode.h, but the Solaris Admin Guide says it exists.

There's ctime, mtime and atime.  `man stat' for more information.

Note that ctime is not `file creation time' as you may think, but
instead `last inode modification time'.  Often it is the file creation
time, but if you adjust anything in the inode, it'll be reset to the
current time.

-- 
Doug McLaren, dougmc at frenzy.com                     Game over, man! Game over!


More information about the SunHELP mailing list