查看常用centos的版本信息

一、查看Linux--centos的版本

[root@hadoop003 ~]# cat /etc/redhat-release

CentOS Linux release 7.6.1810 (Core)

二、查看Linux依赖的版本

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

Linux version 3.10.0-693.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Tue Aug 22 21:09:27 UTC 2017

三、查看Linux主机和内核版本

[root@hadoop003 ~]# uname -a

Linux hadoop003 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

四、查看Linux内核版本

[root@hadoop003 ~]# uname -r

3.10.0-693.el7.x86_64

五、查看系统类型(32位还是64位)

[root@hadoop003 ~]# 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]=ceaf496f3aec08afced234f4f36330d3d13a657b, stripped

你可能感兴趣的:(centos)