LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-09-2007, 12:45 AM   #1
close2me
LQ Newbie
 
Registered: Jul 2006
Location: Canton
Distribution: Debian Etch
Posts: 14

Rep: Reputation: 0
Angry 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.
 
Old 05-09-2007, 01:00 AM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,442
Blog Entries: 7

Rep: Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551
It should work. Perhaps try it without the quotes.
 
Old 05-09-2007, 01:17 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You are likely using a case insensitive filesystem, like FAT.

Try:
Code:
mv ftp.tmp _ftp.tmp
mv _ftp.tmp FTP.TMP
 
Old 05-09-2007, 01:29 AM   #4
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Rep: Reputation: 79
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
 
Old 05-09-2007, 01:42 AM   #5
close2me
LQ Newbie
 
Registered: Jul 2006
Location: Canton
Distribution: Debian Etch
Posts: 14

Original Poster
Rep: Reputation: 0
Smile

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
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rename command does not work! wtn2die Linux - General 6 12-27-2006 11:00 AM
the rename bash command is malfunctioning nicdee Linux - General 10 04-29-2006 09:02 AM
rename reboot command coco03 Linux - General 6 04-19-2005 02:11 AM
rename command won't work Red Squirrel Linux - Newbie 4 03-03-2004 08:53 PM
rename with command line shanenin Linux - Software 1 09-25-2003 07:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration