Linux: changing hostname on the fly
Feb.04, 2009 in
Think Linux
To change hostname on a machine quickly
echo 'hostname' > /proc/sys/kernel/hostname
logout and log to see the changes.
The proc dir is a pseudo file system. To do it permanently, you need to change /etc/sysconfig/network and /etc/hosts

Leave a Reply