mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-12-01 07:39:48 +00:00
updated literal blocks
This commit is contained in:
parent
66e272e9ed
commit
cc661a78b6
2 changed files with 8 additions and 8 deletions
|
@ -17,7 +17,7 @@ You can replace the value in the Device name field with the name of your choosin
|
||||||
|
|
||||||
You can see the effect of the change by running the `hostnamectl status` command again:
|
You can see the effect of the change by running the `hostnamectl status` command again:
|
||||||
|
|
||||||
```
|
....
|
||||||
Static hostname: emilys-2nd-dev-laptop
|
Static hostname: emilys-2nd-dev-laptop
|
||||||
Pretty hostname: Emily's 2nd dev laptop
|
Pretty hostname: Emily's 2nd dev laptop
|
||||||
Icon name: computer-laptop
|
Icon name: computer-laptop
|
||||||
|
@ -28,13 +28,13 @@ You can see the effect of the change by running the `hostnamectl status` command
|
||||||
CPE OS Name: cpe:/o:fedoraproject:fedora:33
|
CPE OS Name: cpe:/o:fedoraproject:fedora:33
|
||||||
Kernel: Linux 5.10.10-200.fc33.x86_64
|
Kernel: Linux 5.10.10-200.fc33.x86_64
|
||||||
Architecture: 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.
|
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.
|
||||||
|
|
||||||
Hostnames can also be set at the command line with the `hostnamectl set-hostname` 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 --pretty "Emily's 2nd dev laptop"
|
||||||
sudo hostnamectl set-hostname --static emily-dev-2
|
sudo hostnamectl set-hostname --static emily-dev-2
|
||||||
```
|
....
|
||||||
|
|
|
@ -12,9 +12,9 @@ image::displaying-current-hostname-1.png[GNOME Settings - About]
|
||||||
|
|
||||||
To see the hostname from the command line, use the command `hostnamectl` with no options. The output below shows the static and pretty hostnames:
|
To see the hostname from the command line, use the command `hostnamectl` with no options. The output below shows the static and pretty hostnames:
|
||||||
|
|
||||||
```
|
....
|
||||||
Static hostname: emilys-2nd-dev-laptop
|
Static hostname: localhost.localdomain
|
||||||
Pretty hostname: Emily's 2nd dev laptop
|
Transient hostname: fedora
|
||||||
Icon name: computer-laptop
|
Icon name: computer-laptop
|
||||||
Chassis: laptop
|
Chassis: laptop
|
||||||
Machine ID: 15fc9e69d007013025f31bc5272c4ed1
|
Machine ID: 15fc9e69d007013025f31bc5272c4ed1
|
||||||
|
@ -23,6 +23,6 @@ To see the hostname from the command line, use the command `hostnamectl` with no
|
||||||
CPE OS Name: cpe:/o:fedoraproject:fedora:33
|
CPE OS Name: cpe:/o:fedoraproject:fedora:33
|
||||||
Kernel: Linux 5.10.10-200.fc33.x86_64
|
Kernel: Linux 5.10.10-200.fc33.x86_64
|
||||||
Architecture: x86-64
|
Architecture: x86-64
|
||||||
```
|
....
|
||||||
|
|
||||||
To see the current transient hostname, you can use the command `hostnamectl --transient`. In many cases this will simply be the static name, unless a naming collision with another host has forced a change.
|
To see the current transient hostname, you can use the command `hostnamectl --transient`. In many cases this will simply be the static name, unless a naming collision with another host has forced a change.
|
||||||
|
|
Loading…
Reference in a new issue