wh4t 1f u 0n 4n0th3r b0x3n, 
nd c4nt 4cs ur f1l3z b3c0z 
un1x d33ms u 4 /r33p.


On Thu, 2009-04-09 at 14:43 -0700, Rick Moen wrote:
> 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