This question already has an answer here:
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?