Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Sep 2020 11:11:10 +0000
From:      "Thomas Mueller" <mueller6722@twc.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Preserving target file's creation date
References:  <20200929064218.00002422@seibercom.net>

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


Tom




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?>