To change host name in Linux from command line, type:
vi /etc/sysconfig/network
Now, you will see a file such as the one shown below:
To change the hostname , you can change the highlighted to any thing you want. Press ‘i‘ or INSERT to edit the file. After making necessary changes, you can save the file by pressing ESC followed by :wq and hit ENTER.
Now, restart to make necessary changes. You can reboot by typing the following in the command line:
reboot
After reboot, login and check your hostname by typing the following in the terminal / command line :
hostname
Hope this helps! 🙂
ΞXΤЯ3МΞ
There is an Online Christmas Party at Marsha Lee’s Blog! Celebrating my birthday and Christmas! Feel free to stop by and celebrate! http://tchistorygal.wordpress.com/2012/12/24/renees-online-birthday-party/
Merry Christmas!
Renee 🙂
Oh! dats great! Happy bday! n Merry Christmas!
hahaha Thank you Extreme! Merry Christmas! Hope you have a great day! 😀
Thank Extreme 🙂
@trantuanson1991 , Your Welcome!
Regards
ΞXΤЯ3МΞ
[…] http://architects.dzone.com/articles/centos-minimal-installation https://extr3metech.wordpress.com/2012/12/12/changing-hostname-in-centos-red-hat-linux/https://www.vmware.com/support/ws55/doc/ws_newguest_tools_linux.html#wp1127177 […]