LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Got me going crazy? unable to rename using mv command!!! (https://www.linuxquestions.org/questions/linux-general-1/got-me-going-crazy-unable-to-rename-using-mv-command-552478/)

close2me 05-09-2007 12:45 AM

Got me going crazy? unable to rename using mv command!!!
 
It's too hard to believe i cannot rename the file using mv.

when i tried to raname a regular file named ftp.tmp to FTP.TMP. i typed the following command as:

mv "ftp.tmp" "FTP.TMP"

but i was prompted that i cannot change the name.

mv: ftp.tmp and FTP.TMP are the same file.

leaving the file ftp.tmp totally untouched.
i assure u that there r no file named FTP.TMP aready exist.

who can tell me why, im totally puzzled.

rkelsen 05-09-2007 01:00 AM

It should work. Perhaps try it without the quotes.

jlliagre 05-09-2007 01:17 AM

You are likely using a case insensitive filesystem, like FAT.

Try:
Code:

mv ftp.tmp _ftp.tmp
mv _ftp.tmp FTP.TMP


deadeyes 05-09-2007 01:29 AM

Quote:

Originally Posted by jlliagre
You are likely using a case insensitive filesystem, like FAT.

Try:
Code:

mv ftp.tmp _ftp.tmp
mv _ftp.tmp FTP.TMP


or you don't have the permissions to move the file

close2me 05-09-2007 01:42 AM

Quote:

Originally Posted by jlliagre
You are likely using a case insensitive filesystem, like FAT.

Try:
Code:

mv ftp.tmp _ftp.tmp
mv _ftp.tmp FTP.TMP


:p tku ~~ i got it.
it really is a vfat filesystem.
but the way using tem to translate the lowercase filename to uppercase one does not word as expected.

anyway, i know that's why. TKU :) jllagre.
tku rkelsen & deadesys all the same.


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