Preserving target file's creation date

Arthur Chance freebsd at
Tue Sep 29 11:14:29 UTC 2020

On 29/09/2020 12:11, Thomas Mueller wrote:
>> I am trying to copy/move one file onto another. I need to preserve the
>> creation date of the target file. I see options to preserve the
>> creation date of the source file, but not the target file. Is it
>> possible?
>> Thanks! 
>> Jerry   
> I have had to do that on various occasions:  see man cp
> Use cp -p <source-file> <target-file or directory>

That copies the source file's modification and access times to the
target file. Jerry wants to preserve the *target* file's *creation* time.

The number of people predicting the demise of Moore's Law doubles
every 18 months.

More information about the freebsd-questions mailing list