Header Shadow Image


RHEL 7 / Fedora 19+ Change Hostname

RedHat decided on a significant number of changes in it's new OS releases.  This includes changes to the way the hostname is handled and maintained:

hostnamectl status Check the hostname.
hostnamectl set-hostname <HOSTNAME> Set all hostnames.
hostnamectl set-hostname <HOSTNAME> [OPTION] Options are:

 

 

 

–pretty
–static
–transient.

hostnamectl set-hostname "" [OPTION] Clear hostname.  See options above.
hostnamectl set-hostname -H [USER NAME]@<REMOTE HOST> Change hostname of a remote machine.

And that summarizes the hostname command for the new RH Linux releases.

Cheers,
TK

 


 

 

Subscribe
Notify of
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

     
  Copyright © 2003 - 2025 Tom Kacperski (microdevsys.com). All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License

 

0
Would love your thoughts, please comment.x
()
x
The IT Development and Technology Mini Vault | MicroDevSys.com
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.