touch(1) can only change modification and access times, but has no options for creation time. This does not work, at least not on Lion.
So how do I change the creation time, also referred to as birthtime in fstat(2)? There's no corresponding call in utimes(2) and there doesn't seem to be any command line tool for this.
I know I can copy the file to a new file, which then gets the current time as birthtime (and then delete the original), but surely there must be a better way?
touch -t yyyymmddhhmm $filedoes seem to change the creation date, but only if it's before the original creation date. – Lauri Ranta Apr 20 '12 at 5:22