Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > change creation date of file

change creation date of file
Thread Tools
ctlq
Junior Member
Join Date: Nov 2004
Location: Michigan
Status: Offline
Reply With Quote
Feb 17, 2005, 01:17 PM
 
Does anyone know how to change the creation date of a file? I know it's possible to change when it was last accessed/modified w/ touch but I can't figure out how to change when it was actually created.
     
Gavin
Mac Elite
Join Date: Oct 2000
Location: Seattle
Status: Offline
Reply With Quote
Feb 18, 2005, 10:00 AM
 
I think computers go out of their way to make sure you can't.
You can do it in windows with shareware that exploits bugs.

You may be able to do it with brute force:
Change the system clock to the date you want the file to be.
Copy the contents of your file into a new file, then replace the original with the new.

You can do it in one step in the terminal:

Code:
cat bob.txt >>bob2.txt ; mv -f bob2.txt bob.txt
you can even add in the date change like this:

Code:
sudo date 8506131627 ; cat bob.txt >>bob2.txt ; mv -f bob2.txt bob.txt
that should set the creation date to
June 13, 1985, 4:27 PM

see man date for the date syntax


have fun
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 03:44 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,