From owner-freebsd-questions Fri Sep 22 15:40:20 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail-4.sjc.telocity.net (mail-4.sjc.telocity.net [216.227.56.44]) by hub.freebsd.org (Postfix) with ESMTP id C0AAE37B42C for ; Fri, 22 Sep 2000 15:40:18 -0700 (PDT) Received: from zoso (dsl-216-227-91-85.telocity.com [216.227.91.85]) by mail-4.sjc.telocity.net (8.9.3/8.9.3) with SMTP id PAA16193; Fri, 22 Sep 2000 15:36:43 -0700 (PDT) From: "Otter" To: "Sriranga Veeraraghavan" , Subject: RE: how to copy directory and contents? Date: Fri, 22 Sep 2000 18:44:21 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <200009222159.OAA29115@soda.csua.Berkeley.edu> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG }-----Original Message----- }From: owner-freebsd-questions@FreeBSD.ORG }[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Sriranga }Veeraraghavan }Sent: Friday, September 22, 2000 6:00 PM }To: freebsd-questions@FreeBSD.ORG }Subject: Re: how to copy directory and contents? } } } }> 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 } cp -R has always worked for me. -Otter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message