mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-28 14:56:35 +00:00
Adjust block levels
This commit is contained in:
parent
b3f5d1fa97
commit
e00b2febe7
2 changed files with 7 additions and 6 deletions
|
@ -15,6 +15,7 @@ You can replace the value in the Device name field with the name of your choosin
|
|||
* 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 running the `hostnamectl status` command again:
|
||||
|
||||
```
|
||||
Static hostname: emilys-2nd-dev-laptop
|
||||
Pretty hostname: Emily's 2nd dev laptop
|
||||
|
@ -26,13 +27,13 @@ You can see the effect of the change by running the `hostnamectl status` command
|
|||
CPE OS Name: cpe:/o:fedoraproject:fedora:33
|
||||
Kernel: Linux 5.10.10-200.fc33.x86_64
|
||||
Architecture: x86-64
|
||||
````
|
||||
```
|
||||
|
||||
In the above example, "Emily's 2nd dev laptop" was entered via the Settings app, and the static hostname "emilys-2nd-dev-laptop" was set automatically.
|
||||
|
||||
The hostnames can also be set via the `hostnamectl` command. For example:
|
||||
Hostnames can also be set at the command line with the `hostnamectl set-hostname` command. For example:
|
||||
|
||||
```
|
||||
sudo hostnamectl set-hostname --pretty "Emily's 2nd dev laptop"
|
||||
sudo hostnamectl set-hostname --static emily-dev-2
|
||||
```
|
||||
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@ There are three variations of a hostname in a Fedora system:
|
|||
. An optional **pretty** name can be longer and more descriptive, like "Emily's 2nd dev laptop".
|
||||
. 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`.
|
||||
|
||||
include::{partialsdir}/proc_displaying-current-hostname.adoc[leveloffset=+1]
|
||||
include::{partialsdir}/proc_displaying-current-hostname.adoc[leveloffset=0]
|
||||
|
||||
include::{partialsdir}/proc_changing-the-hostname.adoc[leveloffset=+1]
|
||||
include::{partialsdir}/proc_changing-the-hostname.adoc[leveloffset=0]
|
||||
|
||||
ifdef::parent-context[:context: {parent-context}]
|
||||
ifndef::parent-context[:!context:]
|
||||
|
|
Loading…
Reference in a new issue