linux centos查看系统版本信息方法汇总收集

linux centos查看系统版本信息方法汇总收集

1153发表于2017-07-23

[root@bogon rabbitmq]# cat /etc/redhat-release

CentOS Linux release 7.2.1511 (Core) 


[root@localhost ~]# file /bin/ls

/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=aa7ff68f13de25936a098016243ce57c3c982e06, stripped


查看系统是64位还是32位:

[root@localhost ~]# getconf LONG_BIT

64


[root@localhost ~]# cat /proc/version

Linux version 3.10.0-327.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu Nov 19 22:10:57 UTC 2015

[root@localhost ~]# uname -a

Linux bogon 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

小编蓝狐