in unix how to change old name to new name

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between kill and kill in linux?

774


I am using RedHat 6.3 in I wanna to install and configure zimbra mail. Can anybody tell me what are the RPM packages required for zimbra mail ? Where can I get those RPM packages ?

1181


Explain about lpr filename?

606


How do I find my user id in linux?

526


Why bash is used in linux?

548






What is echo command in batch file?

593


How do I find the linux version?

515


How can we increase disk read performance in single command?

554


How do I permanently delete linux history?

536


Is llvm a compiler?

549


What would be the result of the command paste -s dog cat?

539


Explain difference between nfs soft and hard mouniting points?

515


How do I check dns entry?

565


What is know about grep commands?

554


What is ulimit in linux?

576