changing file creation date changing file creation date boobam (IS/IT--Management) (OP) 24 Sep 00 15:52 I noticed on my SUN workstation (running Solaris 2.6 OS)that some of my files had odd dates to them. Is there a UNIX cmd that can change the creation date to reflect the true date created? RE: changing file creation date 2 ElgisRamon (MIS) 24 Sep 00 16:11 Hello. Normally a Unix system saves the last access time, last modification time of contents, and last modification time of i-node. You can change any of'em with the touch command.I hope it works... RE: changing file creation date Guest (visitor) 3 May 01 03:54 Hi I would like to know how to get unix file creation date in Unix. I am using Sun OS. All I get is the latest modification dates and time. RE: changing file creation date GoldenEternity (TechnicalUser) 6 May 01 05:25 If it is present on your system, the 'stat' command will print this information. Here's a sample:$ stat /etc/protocols File: "/etc/protocols" Size: 1567 Filetype: Regular File Mode: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)Device: 3,1 Inode: 3984 Links: 1Access: Sat May 5 17:42:39 2001(00000.08:42:29)Modify: Wed Jan 12 15:18:52 2000(00479.10:06:16)Change: Thu Feb 22 12:34:51 2001(00072.12:50:17) RE: changing file creation date jad (Programmer) 16 May 01 06:34 you could look at perl (i'm sure you can do it in the OS but i haven't looked hard enough to find it yet) t's got all sorts of facilities to handle file creation/modification/access times ... RE: changing file creation date ElgisRamon (MIS) 31 May 01 15:45 Can´t all you read... the typical Unix system doesn´t store the creation time of files anywhere... then there is no way you can get or change it! I hope it works...Unix was made by and for smart people. RE: changing file creation date midrisi (Programmer) 2 Jun 01 10:19 Through touch command u can change the creation date of file ;Let suppose following file-rwxr-xr-x 1 msi satdev 1237 Mar 24 19:06 usertouch userIt will work.-rwxr-xr-x 1 msi satdev 1237 Jun 2 19:51 user RE: changing file creation date GoldenEternity (TechnicalUser) 2 Jun 01 16:19 midrisi, what ElgisRamon was saying is that UNIX doesn't store "creation" time, it stores "access", "modification", and "change" time (see his post on 'touch' and my post on 'stat'). Touch doesn't modify the creation time, it changes access and modification time for a file.The ironic thing is that he begins his remarks with "can't all you read?", and yet he was the first one to reply to this post. ;) RE: changing file creation date MikeLacey (MIS) 4 Jun 01 09:00 Elgis meant "Why didn't you read my previous reply before adding to the thread?" And he has a point really. <smile> Mikemichael.firstname.lastname@example.orgEmail welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well. RE: changing file creation date Guest (visitor) 7 Feb 02 16:40 i read the whole message thread and no one talks about what "change" time is, and how to modify that attribute. RE: changing file creation date MikeLacey (MIS) 20 Feb 02 11:47 The "touch" command can be used to change the "accessed" time or the "modified" time of a file. Mike"Experience is the comb that Nature gives us after we are bald."Is that a haiku? I never could get the hang of writing those things.