From owner-freebsd-questions Fri Sep 22 9:49:14 2000 Delivered-To: freebsd-questions@freebsd.org Received: from p0016c23.us.kpmg.com (p0016c23.us.kpmg.com [199.207.255.23]) by hub.freebsd.org (Postfix) with ESMTP id E1B6C37B43F for ; Fri, 22 Sep 2000 09:48:55 -0700 (PDT) Received: from p0016c56.kweb.us.kpmg.com by p0016c23.us.kpmg.com(Pro-8.9.3/Pro-8.9.3) with SMTP id MAA28768 for ; Fri, 22 Sep 2000 12:48:54 -0400 (EDT) Received: from p0016c22.kweb.us.kpmg.com by p0016c56.kweb.us.kpmg.com via smtpd (for p0016c23.us.kpmg.com [199.207.255.23]) with SMTP; 22 Sep 2000 16:48:54 UT Received: from usnssexc19.kweb.us.kpmg.com by kpmg.com(Pro-8.9.2/Pro-8.9.2) with ESMTP id MAA17002 for ; Fri, 22 Sep 2000 12:48:53 -0400 (EDT) Received: from usnssexc19.kweb.us.kpmg.com (unverified) by usnssexc19.kweb.us.kpmg.com (Content Technologies SMTPRS 2.0.15) with ESMTP id ; Fri, 22 Sep 2000 12:48:43 -0400 Received: by usnssexc19.kweb.us.kpmg.com with Internet Mail Service (5.5.2650.21) id ; Fri, 22 Sep 2000 12:48:43 -0400 Message-Id: <7799D023E51ED311BFB50008C75DD7B40223B2D2@uschiexc05.kweb.us.kpmg.com> From: "Passki, Jonathan P" To: "'martian@t-online.de'" , questions@freebsd.org Subject: RE: how to copy directory and contents? Date: Fri, 22 Sep 2000 12:48:39 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Or I find doing this very common command helpful on large data moves: cd / tar cf - . | (cd /; tar xf -) It'll may beat up on the processor and memory, and if it doesn't swap = too much, I think it would transfer less data in the move because of the tarring. This saves wear and tear on your drives and disk system. Jon > -----Original Message----- > From: martian@t-online.de [mailto:martian@t-online.de] > Sent: Friday, September 22, 2000 11:44 > To: questions@FreeBSD.ORG > Subject: Re: how to copy directory and contents? >=20 >=20 > On Thu, Sep 21, 2000 at 03:18:20PM -0700, Alfred Perlstein wrote: >=20 > > * Murray [000921 15:01] wrote: > > > How do you copy a directory? I have used cp to copy=20 > files, but I am > > > not sure about copying a directory and all the files within.=20 > >=20 > > please read the manual page for cp. > >=20 > > "man cp" > >=20 > > --=20 > > -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] > > "I have the heart of a child; I keep it in a jar on my desk." >=20 > or try >=20 > cp -r sourcedir targetdir >=20 > --=20 > Martin M=F6ller Email: martian [at] t-online.de >=20 > PhiCom Software * Falkenried 60 * 20251 Hamburg * Deutschland > Tel.: +49 (40) 4232 6801 * Fax: +49 (40) 4232 6811 [Germany] > Mobile: 0172 274 34 33 * http://home.t-online.de/home/martian >=20 >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message >=20 ***************************************************************************** The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. ***************************************************************************** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message