[svlug] Re: [svlug]Re: how to copy a bunch of "." files?

Marc Merlin marc_news at valinux.com
Fri Apr 28 17:35:05 PDT 2000


On jeu, avr 27, 2000 at 11:04:01 -0400, Bryan -TheBS- Smith wrote:
> On Thu, 27 Apr 2000, Ian B MacLure wrote:
> > To copy the entire directory hierarchy below your PWD
> > cd to the directory you want to copy FROM
> > 
> > find . -print | cpio -dmpv <TO-DIRECTORY-PATH>
> 
> Learn this by heart and you will be a successful UNIX admin. 
> Copiest everything exact, all files, all permissions.

Why bother?
cp -a source dest

It's just like the tar cf - | (cd dest; tar xvf -), it's really useless when
you have GNU cp.

Marc
-- 
Microsoft is to software what McDonalds is to gourmet cooking
 
Home page: http://marc.merlins.org/ (friendly to non IE browsers)
Finger marc_f at merlins.org for PGP key and other contact information





More information about the svlug mailing list