hostnamectl 主机信息

最后更新于:2022-04-02 03:49:12

[TOC] ## hostnamectl 查看当前主机的信息。 ``` [root@localhost system]# hostnamectl Static hostname: localhost.localdomain Transient hostname: localhost Icon name: computer-vm Chassis: vm Machine ID: 228ef3c16cc00745a9a7324d002d3fc9 Boot ID: 752e6f2c088c45278b4d278f6c350210 Virtualization: kvm Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-957.27.2.el7.x86_64 Architecture: x86-64 ```
';