查看Linux系统版本信息
- 查看linux系统内核版本
命令:cat /proc/version
查询示例结果:
Linux version 3.10.0-234.el7.x86_64 (sss@kojibuilder-ve) (gcc version 4.8.5 20051234 (NeoKylin 4.8.5-36) (GCC) ) #1 SMP Fri Jan 11 17:34:50 CST 2001
命令:uname -a
查询示例结果:
Linux iZpt8760b0nry1zz1o0aarZ 3.10.0-957.el7.x86_64 #1 SMP Fri Jan 11 10:34:20 CST 2000x86_64 x86_64 x86_64 GNU/Linux
- 查看linux系统发行版本
命令:cat /etc/redhat-release
查询示例结果:
Red Hat Enterprise Linux Server release 7.6 (Maipo)
命令:cat /etc/.productinfo
查询示例结果:
NeoKylin Linux Advanced Server
release V7Update6/(Chromium)-X86_64
b4.lic/20190820