Re: Witch cp ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxx 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@xxxxxxxxxx?subject=unsubscribe 
https://www.redhat.com/mailman/listinfo/redhat-list

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

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux