View centos System Version commands

Source: Internet
Author: User

View centos System Version commands

How can I view the system version of centos? There are several methods:

[root@LAMP1 config]# cat /proc/version Linux version 2.6.32-279.el6.x86_64 (mockbuild@c6b9.bsys.dev.centos.org) (gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Fri Jun 22 12:19:21 UTC 2012[root@LAMP1 config]# uname -aLinux LAMP1.1 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux[root@LAMP1 config]# uname -r2.6.32-279.el6.x86_64[root@LAMP1 config]# 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

View version:

[root@LAMP1 config]# cat /etc/issueCentOS release 6.3 (Final)Kernel \r on an \m[root@LAMP1 config]# cat /etc/redhat-release CentOS release 6.3 (Final)[root@LAMP1 config]# 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

Check whether it is 64-bit or 32-bit:

[root@LAMP1 config]# getconf LONG_BIT64[root@LAMP1 config]# 
  • 1
  • 2
  • 3

Use file/bin/ls

[root@LAMP1 config]# 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[root@LAMP1 config]# 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.