nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

How to rename a file in Linux

This is a discussion on How to rename a file in Linux within the Linux software forums, part of the Linux Getting Started category; mv command renames the file named by the source operand to the destination path named by the target operand. mv ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Linux answers from nixCraft.


Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 22-04-2008, 02:00 AM
raj's Avatar
raj raj is offline
Senior Member
User
 
Join Date: Jun 2005
Location: Hyderabad
OS: Fedora, Debian Linux
Posts: 307
Thanks: 42
Thanked 8 Times in 8 Posts
Rep Power: 6
raj will become famous soon enough raj will become famous soon enough
Default How to rename a file in Linux

mv command renames the file named by the source operand to the destination path named by the target operand. mv command syntax:

Code:
mv {old-file-name {new-file-name}
mv {old-dir-name} {new-dir-name}
Rename a file tom.txt to jerry.txt, type:
Code:
mv tom.txt jerry.txt
Rename a directory lgitech to logitech, enter:
Code:
mv lgitech logitech
__________________
Raj
Linux rulz.
I have never turned back in my life ; I shall not do so today.. haha
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
script to automate download and rename wademac Shell scripting 0 14-04-2008 11:51 PM
Open file in linux amsreeku Linux software 1 24-03-2008 06:41 PM
how to rename eth0 to eth1 deltamails Networking, Firewalls and Security 1 24-09-2007 07:53 PM
Script file to be run when linux boot adhikari.rohit Shell scripting 7 22-05-2007 07:59 PM
How can I rename a file by its date? warren Linux software 5 30-03-2006 12:11 PM


All times are GMT +5.5. The time now is 05:29 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38