查看Linux的版本、系统位数及内核版本

1、查看Linux系统版本

[[email protected]]# cat /etc/issue
CentOS release 6.5 (Final)
Kernel \r on an \m

2、查看Linux系统位数

[[email protected]]# getconf LONG_BIT
64

[[email protected]]# uname -a
Linux PungentAdolescent-VM 2.6.32-042stab127.2 #1 SMP Thu Jan 4 16:41:44 MSK 2018 x86_64 x86_64 x86_64 GNU/Linux

其中x86_64即64位,x86即32位。

3、查看Linux系统内核版本

可以用如上的“uname -a”命令或

[[email protected]]# cat /proc/version
Linux version 2.6.32-042stab127.2 ([email protected]) (gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Thu Jan 4 16:41:44 MSK 2018
原文链接:https://www.pengjy.com/290.html,转载请注明出处。
0

评论0

没有账号?注册  忘记密码?