Translate

Search This Blog

change host name in linux

Host name is defined in file /etc/sysconfig/network  in linux ,so edit this file
1. vi /etc/sysconfig/network

2.  NETWORKING=yes
    HOSTNAME= NewHostname.localdomain

3. save

4. reboot

5. after reboot run the command hostname to check new hotname is in effect