How to Change the hostname in Fedora Linux

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



This command will change the Host Name to


Edit the host name file

#vim /etc/hostname

Leave a Reply

Your email address will not be published. Required fields are marked *

Comment moderation is enabled. Your comment may take some time to appear.