change host name in linux - Linux Views : 365
Tagged in : Linux
0 0
Send mail
change host name in linux:

To know your current hostname, type the following command in terminal,
hostname


It will result you your current hostname as for eg,
localhost.localdomain

To change host name in linux,
* Login as root.
* Open the file /etc/sysconfig/network
* Look for HOSTNAME=......
* Change the hostname as per your wish(ex: HOSTNAME=hscripts.com)

Save the file and restart the xinetd service. (ex: type service xinetd restart in your shell)

By Ramya, On - 2010-02-04



    Login to add Comments .