[wplug] cp command question

Bob Schmertz rschmertz at speakeasy.net
Sun Jun 15 12:22:51 EDT 2003


Brian Medley incurred the wrath of Bob on Jun 14, by saying

>On Sat, Jun 14, 2003 at 03:51:36PM -0400, Russ Schneider wrote:
>
>> When copying many directories, how do you also include all the hidden 
>> file that start with .?  Like .mozilla, .plan, etc.?
>> 
>> And yes, I looked "man cp". :)
>> 
>> Is there a seperate command for this?
>
>When I want to copy a directory I usually use something like:
>
>(cd /source/directory && tar cf - . ) | (cd /dest/directory && tar xvfp -)
>

doing 'cp -R . /dest/directory' (starting from the source directory, and
adding other flags such as -p as appropriate) also seems to work.

-- 
Cheers,
Bob Schmertz




More information about the wplug mailing list