|
|
change host name in linux - Linux
|
Views : 365
|
|
Tagged in : Linux
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
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 |
|
|
|