Wednesday, November 21, 2007

Renaming Files in Linux

I guess you want to learn how to rename a file? Renaming a file is as easy as copying files. Renaming file takes the mv ( short for move ) linux command. The move command can also be used to move files from source to destination folder location. However, this entry would not cover moving of files in linux.

Move follows the below simple command parameters:

# mv old-filename new-filename

Renaming conditions are simple.

1. Filetypes can be of any filetypes.
2. Old-filename can be of any filename as long as the file is existing on current working folder.
3. The new-filename can be of any filename. Move command would prompt anyway for any existing destination filename.


Here is a sample on how to rename file(s) in fedora linux?

# mv autoexec.bat delete.txt

Move would prompt if the new filename already exists.

HTH

0 comments:

Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy