From owner-freebsd-questions Fri Sep 22 14:59:34 2000 Delivered-To: freebsd-questions@freebsd.org Received: from soda.csua.Berkeley.edu (soda.CSUA.Berkeley.EDU [128.32.43.52]) by hub.freebsd.org (Postfix) with ESMTP id 6E7A437B424 for ; Fri, 22 Sep 2000 14:59:32 -0700 (PDT) Received: from soda.csua.Berkeley.edu (localhost [127.0.0.1]) by soda.csua.Berkeley.edu (8.8.8/) via ESMTP id OAA29115 for ; Fri, 22 Sep 2000 14:59:32 -0700 (PDT) env-from (ranga@CSUA.Berkeley.EDU) Message-Id: <200009222159.OAA29115@soda.csua.Berkeley.edu> To: freebsd-questions@FreeBSD.ORG Subject: Re: how to copy directory and contents? In-Reply-To: Your message of "Thu, 21 Sep 2000 15:59:48 MDT." <20000921155948.A43806@converging.net> Date: Fri, 22 Sep 2000 14:59:31 -0700 From: Sriranga Veeraraghavan Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > How do you copy a directory? I have used cp to copy files, but I am > not sure about copying a directory and all the files within. I find that cpio is the prefered way to do this (several others have mentioned tar): $ cd && find . -depth -print | cpio -pvd ----ranga To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message