How to change the namer of Linux server

It is understood, from a command line, and with no reset 😉

Here are the files that need to be changed, and commands to be done :
/etc/hosts
# hostname new.server.name
/etc/sysconfig/network
# hostname new.server.name
# service network restart

Check using command : #hostname

This entry was posted in Linux and tagged , , . Bookmark the permalink.

Comments are closed.