Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I need to mve my folder with many subfloder contents to another path.

I'm using putty and this is what i tried MV -r fromflderpath tofolderpath

Where am i doing wrong ?

share|improve this question
3  
I presume you are entering the command 'mv' and NOT 'MV'. –  mdpc Oct 31 '12 at 17:59

1 Answer 1

up vote 18 down vote accepted

The mv command doesn't have an -R flag, it moves folders recursively:

sudo mv fromPath/ toPath/

Edit

If you want a file not to be replaced, use the -i for being prompted in case a file with the same name exists.

share|improve this answer
    
:I've a file,i've to move this to another directory but in this directory,i've a file with same name.what is the command to move it ,if i move,will i get replaced. –  ram Oct 31 '12 at 17:52
2  
am I missing something here? mv moves a folder and all its contents without any flags. no cp -r;rm -r needed –  Drake Clarris Oct 31 '12 at 18:16
    
sorry, my bad. :) –  Evandro Silva Oct 31 '12 at 18:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.