linux查看操作系统信息
程序员文章站
2022-07-14 12:36:24
...
、# uname -a (Linux查看版本当前操作系统内核信息)
Linux iZ25fduxiavZ 2.6.32-431.23.3.el6.x86_64 #1 SMP Thu Jul 31 17:20:51 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
2、# cat /proc/version (Linux查看当前操作系统版本信息)
Linux version 2.6.32-431.23.3.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Thu Jul 31 17:20:51 UTC 2014
3、# cat /etc/issue 或cat /etc/redhat-release(Linux查看版本当前操作系统发行版信息)
CentOS release 6.5 (Final)
Kernel \r on an \m
4、# cat /proc/cpuinfo (Linux查看cpu相关信息,包括型号、主频、内核信息等)