quick-docs/modules/ROOT/pages/_partials/proc_displaying-current-hostname.adoc

29 lines
1.1 KiB
Text
Raw Normal View History

2021-01-29 22:37:55 +00:00
// Module included in the following assemblies:
//
// changing-hostname.adoc
[id='displaying-current-hostname']
== Displaying your current hostname
For Fedora Workstation, using the default GNOME desktop, open the Settings application and choose About.
2021-01-30 08:07:50 +00:00
image::displaying-current-hostname-1.png[GNOME Settings - About]
2021-01-29 22:37:55 +00:00
To see the hostname from the command line, use the command `hostnamectl` with no options. The output below shows the static and pretty hostnames:
2021-01-30 11:34:14 +00:00
....
Static hostname: localhost.localdomain
Transient hostname: fedora
2021-01-29 22:37:55 +00:00
Icon name: computer-laptop
Chassis: laptop
Machine ID: 15fc9e69d007013025f31bc5272c4ed1
Boot ID: 41ac938872bae052294bcb277241ac93
Operating System: Fedora 33 (Workstation Edition)
CPE OS Name: cpe:/o:fedoraproject:fedora:33
Kernel: Linux 5.10.10-200.fc33.x86_64
Architecture: x86-64
2021-01-30 11:34:14 +00:00
....
2021-01-29 22:37:55 +00:00
2021-01-30 10:42:33 +00:00
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.