Changing the host name on a linux box

This is a simple process ... but again, probably you dont know it since you are looking for it. (Funny boy) 


2 places to change

/etc/sysconfig/network, edit the

HOSTNAME=.

this will be available even after a reboot.

a quicker way - edit

/proc/sys/kernel/hostname.

but that won't be saved when you reboot.

[ Back ]