mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-24 21:35:17 +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:
|
||||
|
||||
```
|
||||
....
|
||||
Static hostname: emilys-2nd-dev-laptop
|
||||
Pretty hostname: Emily's 2nd dev 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
|
||||
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.
|
||||
|
||||
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 @@ 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:
|
||||
|
||||
```
|
||||
Static hostname: emilys-2nd-dev-laptop
|
||||
Pretty hostname: Emily's 2nd dev laptop
|
||||
....
|
||||
Static hostname: localhost.localdomain
|
||||
Transient hostname: fedora
|
||||
Icon name: computer-laptop
|
||||
Chassis: laptop
|
||||
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
|
||||
Kernel: Linux 5.10.10-200.fc33.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.
|
||||
|
|
Loading…
Reference in a new issue