Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Mar 2006 12:39:39 -0700
From:      Martin Alejandro Paredes Sanchez <mapsware@prodigy.net.mx>
To:        freebsd-questions@freebsd.org
Subject:   Re: best way to use cp?
Message-ID:  <200603251239.40069.mapsware@prodigy.net.mx>
In-Reply-To: <b2195ee20603241038w7be2ba47hc18889dd139f2d52@mail.gmail.com>
References:  <b2195ee20603241038w7be2ba47hc18889dd139f2d52@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
El Vie 24 Mar 2006 11:38, Jonathan Horne escribi=F3:
> ok, tell them dumb linux user how to properly copy directories recursivly,
> so he can stop overwritng directories with source files.
>=20
> /humor
>=20
> ok seriously, tho, i think im doing it wrong.  last night i blasted some
> directories, and when i looked at the destination of where i was supposed=
 to
> be copying to, it was full of all kinds of junk that was supposed to be in
> the top level of the directories i was copying.
>=20
> example, i want to copy /mnt/usb1/path/oldfolder  (the folded all its
> recursive contents) into /home/mydir

cp -R /mnt/usb1/path/oldfolder/* /home/mydir/

or

cp -R /mnt/usb1/path/oldfolder /home/mydir/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603251239.40069.mapsware>