change the computer name or host name in Linux

1st check you current host name


#hostname
pritam


then for temporally changing


#hostname pritam-linux


it will loss at reboot. So for permanent mention it in the responsible file in place old host name.


Change both /etc/hostname and /etc/hosts:








#gksudo gedit /etc/hostname  * in command mode you can use vim or nano


#gksudo gedit /etc/hosts  * in command mode you can use vim or nano

No comments:

Post a Comment

Thank You for your Comments, We will read and response you soon...