Witch cp ?

Wayne Pinette wpinette at tru.ca
Thu Mar 16 23:03:56 UTC 2006


Actually, you want cp -a

-a is short for archive, which, if you look at the man page, is short
for -dpR which will not only recursively copy one directory to another,
but more importantly, keep the file permission in tact and not
inadvertently go into an infinite loop.

Wayner


>>> ABliss at preferredcare.org 03/16/06 2:19 pm >>>
I need to copy an entire partition and all it's subdirectories to a
new
partition; do I want cp -rp /srcpartiton/* /destpartiton/ or cp -rp
/srcpartiton/*.* /destpartiton/ ?  Thanks for your help.

www.preferredcare.org 
"An Outstanding Member Experience," Preferred Care HMO Plans -- J. D.
Power and Associates

Confidentiality Notice:
The information contained in this electronic message is intended for
the exclusive use of the individual or entity named above and may
contain privileged or confidential information.  If the reader of this
message is not the intended recipient or the employee or agent
responsible to deliver it to the intended recipient, you are hereby
notified that dissemination, distribution or copying of this information
is prohibited.  If you have received this communication in error, please
notify the sender immediately by telephone and destroy the copies you
received.


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe 
https://www.redhat.com/mailman/listinfo/redhat-list




More information about the redhat-list mailing list