lundi 31 décembre 2012

how to change hostname in linux

Use sysctl to change the hostname

Why would someone need a different method of doing the same thing as above? No idea, but here is anyway: use sysctl to change the variable kernel.hostname: Use:
sysctl kernel.hostname
to read the current hostname, and
sysctl kernel.hostname=NEW_HOSTNAME 
 
 
you can view it by usinf 
 
sysctl -a | grep hostname  

Aucun commentaire:

Enregistrer un commentaire

Nombre total de pages vues