您现在的位置是:首页> 操作系统> Linux

Linux 查看系统信息,版本,内核、CPU等

  • 3117人已阅读
  • 时间:2021-09-08 06:23:56
  • 分类:Linux
  • 作者:祥哥

怎么看centos的版本
有下面几种方法:
方法1:uname -a
[root@yun /]#uname -a
Linux yun 3.10.0-693.2.2e17.x86_64 #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86_64 x86_64 x86_64 GUN/Linux

方法2:uname -r
推荐学习:CentOS使用教程
[root@yun /]#uname -r
3.10.0-693.2.2e17.x86_64

方法3:cat /etc/redhat-release
[root@yun /]#cat /etc/redhat-release
Centos Linux release 7.4.1702 (Core)

方法4:cat /proc/version
[root@yun /]#cat /proc/version
Linux version 3.10.0-693.2.2.e17 x86_64

方法5:cat /etc/issue
[root@yun /]#cat /etc/issue
Centos release 7.4.1702
Kernel \r on an \m


方法6:(此方法适用于有桌面环境的主机)
系统工具-->设置-->详细信息-->about


查看CPU

cat /proc/cpuinfo


Top