From owner-freebsd-questions Fri Sep 22 10:14:46 2000 Delivered-To: freebsd-questions@freebsd.org Received: from relay2.inwind.it (relay2.inwind.it [212.141.53.73]) by hub.freebsd.org (Postfix) with ESMTP id ABFE737B43C for ; Fri, 22 Sep 2000 10:14:41 -0700 (PDT) Received: from [212.141.250.231] (212.141.250.231) by relay2.inwind.it (5.1.046) id 39CB097900016678 for freebsd-questions@freebsd.org; Fri, 22 Sep 2000 19:14:39 +0200 Received: (qmail 1584 invoked by uid 1000); 22 Sep 2000 15:40:03 -0000 Date: Fri, 22 Sep 2000 17:40:03 +0200 From: Francesco Casadei To: Murray Cc: freebsd-questions@freebsd.org Subject: Re: how to copy directory and contents? Message-ID: <20000922174003.A1550@goku.kasby> Mail-Followup-To: Murray , freebsd-questions@freebsd.org References: <20000921155948.A43806@converging.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20000921155948.A43806@converging.net>; from mgd@brutus.converging.net on Thu, Sep 21, 2000 at 03:59:48PM -0600 X-Operating-System: FreeBSD 4.1-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Sep 21, 2000 at 03:59:48PM -0600, Murray wrote: > 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. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > end of the original message If you want you can use tar(1) to copy directories. As stated in the EXAMPLES section of tar man page: [...] To move file hierarchies, use a command line like this: tar -cf - -C srcdir . | tar xpf - -C destdir [...] Francesco Casadei To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message