Set a hostname in Fedora

I know I have not been very active lately, but I came across a convenient command line tool to set a host name in Fedora. While it is possible to set a host name by manually editing a few system files, I recently came across a command that makes it even easier.

sudo hostnamectl set-hostname $new_hostname

Just set “$new_hostname” to your desired host name.

This entry was posted in Fedora, Linux. Bookmark the permalink.
Add Comment Register

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>