Date: Fri, 3 Aug 2001 09:16:46 -0400 From: "Potts, Ross" <rpotts@harris.com> To: 'David Johnson' <djohnson@acuson.com>, leegold <leegold@operamail.com> Cc: freebsd-newbies@freebsd.org Subject: RE: Recursively copying a directory - explain please. Message-ID: <95B669A7D872D41182A600508BDFFB8C01BECD3E@mlbmx7.ess.harris.com>
next in thread | raw e-mail | index | archive | help
Make SURE there are no links back to something already copied, i.e.: /fubar/dir1 /fubar/dir1/a/link1(link to ../dir1) and so on. I caught hell trying to clean up for a demo. Just went and started tarring away before realizing I had filled a 20 gig drive with nothing but recursive links. Even thought I didn't create the links, I still should have caught them right away. -----Original Message----- From: David Johnson [mailto:djohnson@acuson.com] Sent: Thursday, August 02, 2001 5:57 PM To: leegold Cc: freebsd-newbies@freebsd.org Subject: Re: Recursively copying a directory - explain please. 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?95B669A7D872D41182A600508BDFFB8C01BECD3E>