Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


in unix how to change old name to new name

Answers were Sorted based on User's Feedback



in unix how to change old name to new name..

Answer / pravin virkud

mv <old name> <new name> // for rename the file in the same
directory

mv <old name> /<absolute path>/<new name> for rename and
move the file in other diretory.

Is This Answer Correct ?    31 Yes 3 No

in unix how to change old name to new name..

Answer / javed

mv <oldfilename> <newfilename>

eg:-
[root@localhost]# touch file1 //created a file named file1
[root@localhost]# ls //displays the file created
file1
[root@localhost]# mv file1 file2 //command to rename file1
[root@localhost]# ls //displays the renamed file
file2

Is This Answer Correct ?    13 Yes 0 No

in unix how to change old name to new name..

Answer / googler

see there is no rename command in unix ,

so what u can use is "move" (mv) command

mv "(absolute path) old file name" "new file name"

Is This Answer Correct ?    12 Yes 0 No

in unix how to change old name to new name..

Answer / pawan

In Linux the Syntax to change the old name to new name

mv <Old Name> <New Name>

Example:

mv raj shyam
Its changed into shyam

Is This Answer Correct ?    6 Yes 0 No

in unix how to change old name to new name..

Answer / gaurav verma

1. open the file /etc/sysconfig/network and change the
parameter HOSTNAME=<old name> to new name.

2. restart the network services.
3. open the file vi /etc/hosts, and change the old name to
new name.

127.0.0.1 <old name> localhost.localdomain
localhost



Is This Answer Correct ?    7 Yes 2 No

in unix how to change old name to new name..

Answer / shital

in RHEL-5 to change old name to new name of file command is....

#rename <oldname> <newname> <oldname>



......OK shital

Is This Answer Correct ?    7 Yes 12 No

in unix how to change old name to new name..

Answer / kk.utnoor

rename <oldname> <newname>

Is This Answer Correct ?    2 Yes 15 No

Post New Answer



More Linux Commands Interview Questions

Why echo is used in linux?

0 Answers  


What is nslookup command?

0 Answers  


What is devops model?

0 Answers  


What are the ms dos commands?

0 Answers  


How do I check dns entry?

0 Answers  






What is the command to remove Lvm ,Pv and vg

12 Answers   Tech Mahindra, TNS,


1.what is Kernel parameters? 2.how many cpu have use in your machine?

3 Answers   ConSim,


What is umask 000?

0 Answers  


why is the tar command used?

0 Answers  


How do you copy in linux terminal?

0 Answers  


What does the following command line produce? Explain each aspect of this line. $ (date ; ps -ef | awk {print $1}' | sort | uniq | wc -l ) >> Activity.log

4 Answers   Cisco,


How to hide the partition in GRUB booting? (This technique is required when you have more that one Windows system on different partitions of the same disk, let us say the first and second partitions of the first hard drive, to boot from the first partition you must hide the second one)

2 Answers  






Categories