How to Change the hostname in Fedora Linux

      No Comments on 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

#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

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.