Search This Blog


Changing Linux Hostname

  1. Change the hostname temporarily using the hostname command
    hostname $newHostname
  2. Make the changes permanent
  3. Open up /etc/sysconfig/network
    vi /etc/sysconfig/network
  4. Change the HOSTNAME field to equal your new hostname
  5. Logout and on the next login you will see your hostname has changed
The supported methods of changing hostname in linux can vary from distro to distro for more info:

No comments:

Post a Comment