From owner-freebsd-questions@freebsd.org Tue Sep 29 11:12:00 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 648073FE94B for ; Tue, 29 Sep 2020 11:12:00 +0000 (UTC) (envelope-from mueller6722@twc.com) Received: from p-impout001.msg.pkvw.co.charter.net (p-impout001aa.msg.pkvw.co.charter.net [47.43.26.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C0xYC0x61z4dN8 for ; Tue, 29 Sep 2020 11:11:58 +0000 (UTC) (envelope-from mueller6722@twc.com) Received: from localhost ([96.28.177.163]) by cmsmtp with ESMTP id NDY0kEt5HWFOUNDY0ksAev; Tue, 29 Sep 2020 11:11:52 +0000 X-Authority-Analysis: v=2.3 cv=NuGvjPVJ c=1 sm=1 tr=0 a=xqrt2BZAGHte7XHhrxJgbA==:117 a=xqrt2BZAGHte7XHhrxJgbA==:17 a=HpEJnUlJZJkA:10 a=vgtXvg0608vyHjdoXJUA:9 Date: Tue, 29 Sep 2020 11:11:10 +0000 From: "Thomas Mueller" To: freebsd-questions@freebsd.org Subject: Re: Preserving target file's creation date References: <20200929064218.00002422@seibercom.net> X-CMAE-Envelope: MS4wfCSZoZllF29NhS8io5W6nPEXJkH9dmYArEHzB1rOvvoS8/P4EmGGgl6DWJJpM986CY8WVFRhnU8x35mEqEUFi+vIPJV+V3D5yLQVbeAqXu+bRuFjWPwf e7abedvD1JQ3W5szTCVlSx6aCKCvSCZ2AwIP/aXqOv0Hmtmxg7s0UPMJ/Ny/wEK6+W21YgiQbE3yhw== X-Rspamd-Queue-Id: 4C0xYC0x61z4dN8 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mueller6722@twc.com designates 47.43.26.132 as permitted sender) smtp.mailfrom=mueller6722@twc.com X-Spamd-Result: default: False [2.17 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; NEURAL_SPAM_SHORT(0.49)[0.489]; RECEIVED_SPAMHAUS_PBL(0.00)[96.28.177.163:received]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[twc.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[twc.com]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.45)[-0.452]; MISSING_MID(2.50)[]; R_SPF_ALLOW(-0.20)[+ip4:47.43.26.0/24]; NEURAL_HAM_MEDIUM(-0.07)[-0.066]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[twc.com]; ASN(0.00)[asn:40294, ipnet:47.43.24.0/21, country:US]; MIME_TRACE(0.00)[0:+]; MAILMAN_DEST(0.00)[freebsd-questions]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Sep 2020 11:12:00 -0000 > 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 Tom