From owner-freebsd-newbies Thu Aug 2 14:57:26 2001 Delivered-To: freebsd-newbies@freebsd.org Received: from odin.acuson.com (odin.acuson.com [157.226.230.71]) by hub.freebsd.org (Postfix) with ESMTP id A438037B401 for ; Thu, 2 Aug 2001 14:57:24 -0700 (PDT) (envelope-from djohnson@acuson.com) Received: from acuson.com ([157.226.46.72]) by odin.acuson.com (Netscape Messaging Server 3.54) with ESMTP id AAA558; Thu, 2 Aug 2001 15:04:09 -0700 Message-ID: <3B69CCC0.302A4E35@acuson.com> Date: Thu, 02 Aug 2001 14:57:20 -0700 From: David Johnson Organization: Acuson X-Mailer: Mozilla 4.7 [en] (X11; U; SunOS 5.5.1 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: leegold Cc: freebsd-newbies@freebsd.org Subject: Re: Recursively copying a directory - explain please. References: <3B9AAD71@operamail.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org leegold wrote: > > Please explain what the difference is between copying > a directory vs. Recursively copying a directory. Copying a directory only copies the directory and the files contained within it. Recursively copying a directory does the same thing, and in addition, copies any subdirectories (also recursively). The following diagram may be useful /fubar/testone /fubar/testtwo /fubar/subdir /fubar/subdir/example /fubar/subdir/sample /fubar/subdir/newdir /fubar/subdir/newdir/adinfinitem A "cp /fubar/*" will only copy the first two items. A "cp -r /fubar/*" will copy all of the above items. David To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message