Re: rename one file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 24 Dec 2003, Rodrigo Malara wrote:

> I experienced this problem too and it appears to be related to the
> filesystem type, because it only happened to vfat filesystems.
> I remember that a solution was related to setting the proper option when
> mounting the filesystem...

vfat does not understand the consept of upper and lower case. IOW:
file.extension and file.ExTeNsIoN are the same thing on vfat.

On all *nix filesystems that I am aware of the above example would be treated
as different files.

Something like this:
(tigger pts3) $ touch foo.bar
(tigger pts3) $ ll foo*
-rw-rw-r--    1 tdiehl   tdiehl          0 Dec 24 10:00 foo.bar
(tigger pts3) $ cp foo.bar fOo.BaR
(tigger pts3) $ ll f*
-rw-rw-r--    1 tdiehl   tdiehl          0 Dec 24 10:00 fOo.BaR
-rw-rw-r--    1 tdiehl   tdiehl          0 Dec 24 10:00 foo.bar
(tigger pts3) $ mv foo.bar foo.BAR
(tigger pts3) $ ll f*
-rw-rw-r--    1 tdiehl   tdiehl          0 Dec 24 10:00 fOo.BaR
-rw-rw-r--    1 tdiehl   tdiehl          0 Dec 24 10:00 foo.BAR
(tigger pts3) $

> > Trevor Smith wrote:
> > > The other day I wanted to rename one file from a console window like
> > > this:
> > > 
> > > filename.extension
> > > 
> > > to
> > > 
> > > filename.EXTENSION
> > > 
> > > I couldn't find any way to do it while leaving the file in the same
> > > directory. I could succeed using KDE/mouse renaming, but mv and cp
> > > refused or failed to rename the file while leaving it in the same
> > > directory.
> > > 
> > > Any ideas?
> > > 
> > > 
> > 
> > This works fine for me
> > 
> > $ touch file.extension
> > $ ls
> > file.extension
> > $ mv file.extension file.EXTENSION
> > $ ls
> > file.EXTENSION
> > $
> 
> 
> 
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
> 




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux