Procedure to Change the System Name in Fedora Linux 20, 21, 22, 23, 24, 25, 26 in Command line and Host File
Change host name in Command line
To print the present host name
#hostname
oldhostname.domain.com
#hostname newhostname.domain.com
This command will change the Host Name to newhostname.domain.com
#hostname
newhostname.domain.com
Edit the host name file
#vim /etc/hostname
newhostname.domain.com