[PLUG] Proper way to copy directories

Rich Shepard rshepard at appl-ecosys.com
Wed Dec 22 18:37:34 UTC 2004


On Wed, 22 Dec 2004, Richard C. Steffens wrote:

> cp -r -p all /home/rsteff /home2

Dick,

   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.

HTH,

Rich

-- 
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
<http://www.appl-ecosys.com>   Voice: 503-667-4517   Fax: 503-667-8863



More information about the PLUG mailing list