From owner-freebsd-questions Fri Sep 22 15:57:50 2000 Delivered-To: freebsd-questions@freebsd.org Received: from pinnacle.kingsqueak.org (pinnacle.kingsqueak.org [216.35.71.180]) by hub.freebsd.org (Postfix) with ESMTP id 5ECB637B43C for ; Fri, 22 Sep 2000 15:57:44 -0700 (PDT) Received: by pinnacle.kingsqueak.org (8.11.0/8.11.0) id e8MMvdW25084; Fri, 22 Sep 2000 18:57:39 -0400 (EDT) (envelope-from kingsqueak@kingsqueak.org) Message-Id: <200009222257.e8MMvdW25084@pinnacle.kingsqueak.org> X-Authentication-Warning: pinnacle.kingsqueak.org: httpd set sender to kingsqueak@kingsqueak.org using -f Content-Transfer-Encoding: 8bit User-Agent: IMHO/0.98 (Webmail for Roxen) In-Reply-To: <200009222159.OAA29115@soda.csua.Berkeley.edu> MIME-Version: 1.0 Date: Fri, 22 Sep 2000 18:57:39 +0000 Subject: Re: how to copy directory and =?iso-8859-1?q?contents=3F?= Cc: freebsd-questions@FreeBSD.ORG From: Chris To: =?iso-8859-1?q?=22Sriranga?= =?iso-8859-1?q?_Veeraraghavan=22?= Content-Type: text/plain; charset=iso-8859-1 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG cp -Rp ------------------- > > > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message