![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ftp files -- but keep the original timestamp | Perderabo | Answers to Frequently Asked Questions | 0 | 07-23-2006 11:43 AM |
| ftp - get file and keep original timestamp? | frustrated1 | Shell Programming and Scripting | 2 | 03-15-2006 01:31 PM |
| Create file with old timestamp | Kris_Kart_101 | UNIX for Dummies Questions & Answers | 2 | 10-14-2005 01:18 PM |
| Sort - original order .... Help | olga | UNIX for Dummies Questions & Answers | 2 | 06-01-2005 08:26 AM |
| Original Path | therealtiger | UNIX for Dummies Questions & Answers | 5 | 05-18-2001 01:41 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
How to get the original create timestamp?
How do i get the original create timestamp in Unix?
I tried "ctime" but this gives me the change timestamp which changes with changes to inode (owner, permissions, etc.). I need the timestamp when the file was originally created. Thanks in advance! |
|
||||
|
I believe there is no embedded way of knowing the original timestamp. The ext2/ext3 inode structure looks like this:
Code:
struct ext2_inode {
__u16 i_mode; /* File mode */
__u16 i_uid; /* Low 16 bits of Owner Uid */
__u32 i_size; /* Size in bytes */
__u32 i_atime; /* Access time */
__u32 i_ctime; /* Inode change time */
__u32 i_mtime; /* Modification time */
__u32 i_dtime; /* Deletion Time */
__u16 i_gid; /* Low 16 bits of Group Id */
__u16 i_links_count; /* Links count */
__u32 i_blocks; /* Blocks count */
__u32 i_flags; /* File flags */
(...)
|
![]() |
| Bookmarks |
| Tags |
| create timestamp, ctime, timestamp |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|