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 can we increase disk read performance in single command?

795


How do you copy in linux terminal?

733


What is the difference between clang and llvm?

761


Which command reduces the size of a file?

816


Is cmake a compiler?

793


How do you run command every time a file is modified?

722


How do I know my shell?

734


What is #!/ Bin sh?

722


What is nslookup command?

741


What command should you use to check your file system?

742


What are the basic commands in command prompt?

740


What does comm do and how to use it?

751


How do I check my disk space?

655


How do I find the linux version?

741


What will happen when a system call is encountered in a user program?

1779