[syh@localhost-live ~]$ hostnamectl
Static hostname: localhost.localdomain
Transient hostname: localhost-live
Icon name: computer-vm
Chassis: vm
Machine ID: 861fe4dbbde84e07afe8f7e9b0c351be
Boot ID: 574132159c3e47cebac833fd52e55614
Virtualization: kvm
Operating System: Fedora 32 (Workstation Edition)
CPE OS Name: cpe:/o:fedoraproject:fedora:32
Kernel: Linux 5.6.6-300.fc32.x86_64
Architecture: x86-64
the high-level “pretty” hostname which might include all kinds of special characters (e.g. “Lennart’s Laptop”), the static hostname which is used to initialize the kernel hostname at boot (e.g. “lennarts-laptop”), and the transient hostname which is a fallback value received from network configuration. If a static hostname is set, and is valid (something other than localhost), then the transient hostname is not used.
本文详细介绍了Fedora32 Workstation Edition系统的主机名配置情况,包括静态主机名、临时主机名及虚拟化环境。深入解析了hostnamectl命令的使用,展示了Linux内核版本、操作系统类型等关键信息。
701

被折叠的 条评论
为什么被折叠?



