quick-docs/modules/ROOT/partialsdelete/2delete-proc_displaying-current-hostname.adoc

35 lines
1.2 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
2021-01-30 11:52:13 +00:00
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.
2021-01-29 22:37:55 +00:00
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 11:52:13 +00:00
To see the current static, transient or pretty hostname, you can use the `hostnamectl` command with options, such as:
2021-01-30 11:56:30 +00:00
....
2021-01-30 11:52:13 +00:00
hostnamectl --static
hostnamectl --transient
hostnamectl --pretty
2021-01-30 11:56:30 +00:00
....