- Edit file /etc/sysconfig/network using your favourite editor. In my case is nano. So i’ll enter nano /etc/sysconfig/network
- Look for HOSTNAME=xxxxxx
- Change the xxxx to the name you wish to set for your computer. (ex: HOSTNAME=techiecorner.com)
- Save the file and restart the xinetd service. (ex: type service xinetd restart in your shell)
- Done! You have just changed your hostname in Linux platform
I always remember quality & price, professionality, reliability & reputation. I'm not the best, but I still try to do better, I understand well that "if I do not, someone else will"
Friday, May 18, 2012
How to change hostname in Linux
Labels:
linux
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment