Quoting chris ([email protected]):

> cp -r $1/* $2 
> 
> :)

Major win for simplicity!  But consider "cp -ax [foo] [bar]".

The "a" accomplishes everything "r" does, while avoiding dereferencing
symlinks, and preserving ownership, permissions, and time stamps.  The
"x" avoids accidentally crossing filesystem boundaries, which can be 
A Very Bad Thing, if, say, copying the root FS.  (Trying to copy
/proc/kcore will ruin your whole day.)
_______________________________________________
vox-tech mailing list
[email protected]
http://lists.lugod.org/mailman/listinfo/vox-tech

Reply via email to