Learn how to quickly set a Linux hostname without having to reboot the server. Long ago, in an operating system far, far away, the act of changing a hostname in Linux required a reboot. This wasn’t too big of a deal, especially considering most production machines rarely change hostnames. However, there are times when changing a hostname is advantageous—say in a testing environment, or when a machine has been repurposed for another use. .