rename one file

Peter Eddy petere at atg.com
Wed Dec 24 14:45:05 UTC 2003


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?

$ touch filename.extension
$ mv filename.extension filename.EXTENSION

workes for me. What did you do, and what were the error messages?





More information about the fedora-list mailing list