Linux Centos 如何查看版本相关信息

1. cat /proc/version

        Linux version 2.6.32-642.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) ) #1 SMP Tue May 10 17:27:01 UTC 2016

2.uname -a

        Linux localhost.localdomain 2.6.32-642.el6.x86_64 #1 SMP Tue May 10 17:27:01 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

3.uname -r

        2.6.32-642.el6.x86_64

4.cat /etc/issue

        CentOS release 6.8 (Final)

5.cat /etc/redhat-release

        CentOS release 6.8 (Final)

6.getconf LONG_BIT

        64

7.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.18, stripped

你可能感兴趣的:(Linux Centos 如何查看版本相关信息)