Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Sep 2020 12:14:26 +0100
From:      Arthur Chance <freebsd@qeng-ho.org>
To:        Thomas Mueller <mueller6722@twc.com>, freebsd-questions@freebsd.org
Subject:   Re: Preserving target file's creation date
Message-ID:  <83ca9840-a622-b069-5a3c-9bfabf2fb9a5@qeng-ho.org>
In-Reply-To: <20200929064218.00002422@seibercom.net>
References:  <20200929064218.00002422@seibercom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?83ca9840-a622-b069-5a3c-9bfabf2fb9a5>