Explain in detail the method of viewing system version number information under linux (summary)
Sometimes you need to check the CentOs version of your system, and there are some commands that can be viewed as follows: view Linux kernel version commands (two methods) and Linux system version commands (three methods)
1. Check the Linux kernel version command (two methods):
1 、 cat / proc/version
[root@localhost ~] # cat / proc/versionLinux version 2.6.18-194.8.1.el5.centos.plus (mockbuild@builder17.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) # 1 SMP Wed Jul 7 11:50:45 EDT 2010
2. Uname-a
[root@localhost] # uname-aLinux localhost.localdomain 2.6.18-194.8.1.el5.centos.plus # 1 SMP Wed Jul 7 11:50:45 EDT 2010 i686 i686 i386 GNU/Linux
2. Check the command of the Linux system version (3 methods):
1. Lsb_release-a, and all version information can be listed:
[root@localhost ~] # lsb_release-aLSB Version:: core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarchDistributor ID: CentOSDescription: CentOS release 5.5 (Final) Release: 5.5Codename: Final
This command applies to all Linux distributions, including Redhat, SuSE, Debian... Wait for the release.
2. Cat / etc/redhat-release, this method is only suitable for Linux of Redhat system:
[root@localhost ~] # cat / etc/redhat-releaseCentOS release 5.5 (Final)
3. Cat / etc/issue, this command also applies to all Linux distributions.
[root@localhost ~] # cat / etc/issueCentOS release 5.5 (Final)
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.