[Linux-disciples] Question about syntax using mv

Stephen R Laniel steve at laniels.org
Tue Oct 18 14:46:08 EDT 2005


On Tue, Oct 18, 2005 at 02:43:05PM -0400, Jason Smith wrote:
> Is that the same as either option I suggested just far more elegant?

I don't think it is. I believe

mv ~/foo /bar/foo

is going to create a directory called /bar/foo/foo .

> Also, there is a set of files that I want to overwrite there if they  
> are duplicates, wouldn't i need the "f" argument? Wouldn't I need the  
> "r" argument since it is a directory?

You'd need the -f to overwrite existing files. -r isn't an
available option in mv, though it is so in cp. See the man
pages for both.

-- 
Stephen R. Laniel
steve at laniels.org
+(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20051018/08840e5b/attachment.pgp


More information about the Linux-disciples mailing list