How To Change Your Linux Hostname Without Rebooting
If you’re like most people, your Linux hostname is probably something like “desktop” or “server1”. But what if you want to change it? Here’s how to do it without rebooting. .. Changing the Hostname First, you must change the config file that controls this. The actual file and its location will vary across distributions. In the Redhat derivatives, the file to modify is /etc/sysconfig/network so vi this file and change the line that reads HOSTNAME=...