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 bash linux?

516


What does history command do in linux?

525


How do I find command history in linux?

487


How do I check disk space in bash?

492


Which command puts a script to sleep untill a signal is recieved?

638






Explain the free command.

583


Write a command that will look for files with an extension "c", and has the occurrence of the string "apple" in it.

1171


How can I create a file with cmd?

529


What is the difference between find and locate command in linux?

542


What is a ulimit in unix?

513


What signal is ctrl c?

515


What language is clang written in?

486


What is file and example?

610


Who unix commands?

609


What are different command to check ram, process and hdd of linux machine?

532