[wplug] cp command question

Brian Medley bpm-list-wplug at 4321.tv
Sat Jun 14 16:14:52 EDT 2003


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 -)

-- 
~'`^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^`'~=-., \|/  (___)  \|/ _,.-=~'`^`
                          Brian Medley         @~./'O o`\.~@
"Knowledge is Power" brian.medley at verizon.net /__( \___/ )__\  *PPPFFBT!*
  -- Francis Bacon                               `\__`U_/'
 _,.-=~'`^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^`'~= <____|'  ^^`'~=-.,__,.-=
~`'^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^`'~=-.,__,.-==--^'~=-.,__,.-=~'`^`



More information about the wplug mailing list