首页
首页

查看centos系统版本命令---记录

查看系统内核

1
2
3
4
5
6
7
 [root@www conf.d]# cat /proc/version
Linux version 2.6.32-042stab102.9 (root@kbuild-rh6-x64) (gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Fri Dec 19 20:34:40 MSK 2014
[root@www conf.d]# uname -a
Linux www.zhizhebuyan.com 2.6.32-042stab102.9 #1 SMP Fri Dec 19 20:34:40 MSK 2014 i686 i686 i386 GNU/Linux
[root@www conf.d]# uname -r
2.6.32-042stab102.9
[root@www conf.d]#

查看版本

1
2
3
4
5
6
7
8
9
 [root@www conf.d]# cat /etc/issue
CentOS release 6.7 (Final)
Kernel \r on an \m
[root@www conf.d]# cat /etc/issue
CentOS release 6.7 (Final)
Kernel \r on an \m
[root@www conf.d]# cat /etc/redhat-release
CentOS release 6.7 (Final)
[root@www conf.d]#

查看是64位还是32位

1
2
3
4
5
 [root@www conf.d]# getconf LONG_BIT
32
[root@www conf.d]# file /bin/ls
/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
[root@www conf.d]#
支持一下
扫一扫,我会更有动力更新
  • 微信扫一扫
  • 支付宝扫一扫