Wednesday, May 1, 2024
279
rated 0 times [  279] [ 0]  / answers: 1 / hits: 939101  / 3 Years ago, sun, august 22, 2021, 9:47:21

I need to move my folder with many subfolders to another path.



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



What am I doing wrong?


More From » command-line

 Answers
4


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.


[#34572] Monday, August 23, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
wherejuic

Total Points: 53
Total Questions: 123
Total Answers: 117

Location: Zambia
Member since Mon, Jan 23, 2023
1 Year ago
;