question: copy command

gerrynix gerrynix at yahoo.com
Thu Dec 9 22:26:06 UTC 2004


--- Rick Stevens <rstevens at vitalstream.com> wrote:

> Mark Knecht wrote:
> > On Thu, 09 Dec 2004 17:14:17 -0500, GoijI P <goijiud at hotmail.com>
> wrote:
> > 
> >>please, what's best and least risky command to copy contents of
> directory
> >>/dir to /Mydir?.
> >>
> > 
> > 
> > I don't know if it's either best or least risky, but
> > 
> > cp -R /dir /Mydir
> 
> or "cp -a /dir /Mydir" (preserves ownership and such)

or Assuming /Mydir exists and has no conflicting data:

cd /dir
find . -print | cpio -pvdm /Mydir


>
----------------------------------------------------------------------
> - Rick Stevens, Senior Systems Engineer    
> rstevens at vitalstream.com -
> - VitalStream, Inc.                      
> http://www.vitalstream.com -
> -                                                                  
>  -
> -      Do you know how to save five drowning lawyers?  No?  GOOD!  
>  -
>
----------------------------------------------------------------------
> 
> _______________________________________________
> Redhat-install-list mailing list
> Redhat-install-list at redhat.com
> https://www.redhat.com/mailman/listinfo/redhat-install-list
> To Unsubscribe Go To ABOVE URL or send a message to:
> redhat-install-list-request at redhat.com
> Subject: unsubscribe
> 




More information about the Redhat-install-list mailing list