Monday, April 29, 2024
279
rated 0 times [  279] [ 0]  / answers: 1 / hits: 939098  / 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
wherejuic questions
Thu, Aug 19, 21, 18:07, 3 Years ago
Wed, May 12, 21, 03:23, 3 Years ago
Sat, Nov 13, 21, 05:27, 3 Years ago
Mon, Sep 5, 22, 17:36, 2 Years ago
;