Change Host Name of Linux Red Hat or CentOS Permanently

Here is the short commands to change the host name of your linux Red Hat or CentOS 5 & 6 operating system, Follow the below steps:

  • Login to your server via SSH
  • Edit the file /etc/sysconfig/network by executing below command:
  • nano /etc/sysconfig/network
  • Find the host name line, usually written as :
  • server.websterz.net
  • Just change the host name and press:
  • CTRL + O and then press Enter

Read More