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

How do I use nslookup in linux?

503


How do I do a whois search?

552


what do know about commands?

574


What is clang tidy?

559


Which daemon is used for scheduling of the commands?

567






Brief about the command nn?

601


Which are the linux directory commands?

556


What is the command to delete a file linux?

515


What command do you type to find help about the command who?

538


What is df command in unix?

503


What is devops model?

514


Which command is used to compare the files?

488


What is makefile in unix?

533


Is python faster than bash?

564


How can I delete a file in linux?

535