[PLUG] Proper way to copy directories

Rich Burroughs rich at paranoid.org
Wed Dec 22 18:44:08 UTC 2004


Rich Shepard wrote:

> 
>   What I've done is:
> 
>     cp -Ra /home/rsteff/* /home2
> 
> Lowercase 'r' is usually a synonym for uppercase 'R'. The 'a' is for
> archive:
> 
>        -a, --archive
>               Preserve as much as possible of the  structure  and
>               attributes  of  the original files in the copy (but
>               do not preserve directory  structure).   Equivalent
>               to -dpPR.

Hey Rich, the -a option includes the -R funtionality already, you can 
use just -a instead of -Ra.


Rich






More information about the PLUG mailing list