question: copy command

Rick Stevens rstevens at vitalstream.com
Thu Dec 9 22:22:10 UTC 2004


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)
----------------------------------------------------------------------
- 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!    -
----------------------------------------------------------------------




More information about the Redhat-install-list mailing list