Changing Hostname of Fedora Linux
Different Linux distros have different method to set the hostname. On Fedora Linux, it is quite simple.
Open the /etc/sysconfig/network file
vim /etc/sysconfig/network
Find the line starting with
HOSTNAME=Assign the hostname for this computer to this variable. For example, to set the hostname to ericpc.fclose.com, just set
HOSTNAME=ericpc.fclose.comSave the file and it should take effect. If the machine uses the network service, restarting the network may be needed:
# service network restart
By: Zhiqiang Ma
Last updated: Dec 12, 2012
Views: 402
Tags: Bash, Client config, Command line, Fedora, Server config, shell, Tutorial
Tags: Bash, Client config, Command line, Fedora, Server config, shell, Tutorial