quick-docs/modules/ROOT/pages/_partials/proc_displaying-current-hostname.adoc
2021-02-10 16:32:31 +00:00

34 lines
1.2 KiB
Text

// 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.
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 example output below shows the static and transient hostnames. Your output may be slightly different depending on which hostname types have been set.
....
Static hostname: localhost.localdomain
Transient hostname: fedora
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
....
To see the current static, transient or pretty hostname, you can use the `hostnamectl` command with options, such as:
....
hostnamectl --static
hostnamectl --transient
hostnamectl --pretty
....