A new installation of Fedora will assign a default hostname. You may wish to set a different name for easier identification of your host(s) on a network.
. A **transient** name is assigned by the network. It is probably going to be the same as the static name, unless there are multiple hosts with the same static name on the local network. For example, if there are two hosts both with static name "localhost", one machine may be assigned a transient name of "localhost-1".
To see the hostname from the command line, use the command `hostnamectl` with no options. The example output below shows the static and transient hostnames. Your output may be slightly different depending on which hostname types have been set.
You can replace the value in the Device name field with the name of your choosing. The effect of this field is as follows:
* If you use a name that is shorter, contains only lowercase letters, numbers and/or dashes ("-"), this will set the host's static name, and the pretty name will be left blank.
* If you enter a name that is more descriptive, contains mixed-case and other types of characters, this will set the pretty name, and a static name will be derived from that automatically.
You can see the effect of the change by using the `hostnamectl` command again:
In the previous example, "Emily's 2nd dev laptop" was entered via the Settings app, and the static hostname "emilys-2nd-dev-laptop" was set automatically.
Hostnames can also be set at the command line with the `hostnamectl set-hostname` command. For example: