[Linux-disciples] Overwriting dirs in mv
Adam Kessel
adam at bostoncoop.net
Thu Mar 9 11:12:33 EST 2006
Stephen R Laniel wrote:
> Suppose I'm copying a directory tree A over a directory tree
> B, and both trees have identical files in them. If I do
>
> mv -f A B
>
> I'll get an error that mv can't overwrite B's
> subdirectories. Whereas if I do
>
> cp -r A B
>
> everything works fine. So then I'd have to do
>
> rm -R A
>
> to achieve the same effect as the 'mv' command.
>
> Is there some way to do all of this with mv?
Not that I know, other than creating an alias that takes the steps you
describe above.
More information about the Linux-disciples
mailing list