1 查看CPU核数和型号和主频
centos下:
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
2 查看操作系统内核版本
[root@localhost etc]# cat /proc/version
Linux version 3.10.0-862.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Fri Apr 20 16:44:24 UTC 2018
[root@localhost etc]
[root@localhost etc]# uname -a
Linux localhost.localdomain 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@localhost etc]#
[root@localhost etc]# uname -r
3.10.0-862.el7.x86_64
[root@localhost etc]#
3 查看操作系统版本
限redHat或Centos
[root@localhost etc]# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
[root@localhost etc]#
网友评论