LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rename file with "mv" not working for folder? (https://www.linuxquestions.org/questions/linux-newbie-8/rename-file-with-mv-not-working-for-folder-301293/)

Niceman2005 03-13-2005 09:18 PM

rename file with "mv" not working for folder?
 
Dear all,

I tried to rename a folder but it didn't work. To rename a folder x to y I did the following:

mv x y

But it didn't work, instead it moved the whole folder x into folder y.

What is the correct way to rename a folder?

thanks a lot for helping!

puffinman 03-13-2005 09:20 PM

You have to make sure the destination directory does not yet exist.

Niceman2005 03-13-2005 09:34 PM

Hi Mr puffinman

Oh...my stupid mistake...sorry.
thanks a lot for your help.


All times are GMT -5. The time now is 08:48 AM.