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, andsysctl kernel.hostname=NEW_HOSTNAME
you can view it by usinf
sysctl -a | grep hostname
Aucun commentaire:
Enregistrer un commentaire