查看linux系统信息
查看内核版本
[root@qinghong ~]# uname -a
Linux qinghong.cn 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
—————————————————————————————————————————————————
查看主机名等信息
[root@qinghong ~]# hostnamectl
Static hostname: qinghong.cn
Icon name: computer-vm
Chassis: vm
Machine ID: 1b416797639b4025bf95ecf720baa564
Boot ID: ecac5b8392244068854d7139d675a324
Virtualization: vmware
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-862.el7.x86_64
Architecture: x86-64
—————————————————————————————————————————————————
查看操作系统发行版本
[root@qinghong ~]# cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core)

浙公网安备 33010602011771号