Linux View system version and kernel version

Source: Internet
Author: User
Tags centos

How to view distribution information for Linux systems

The code is as follows Copy Code

#[root@hsnoklox lnmp0.9]# Cat/etc/issue
CentOS Release 5.3 (Final)
Kernel R on a m

# lsb_release-a
LSB Version:: Core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor Id:centos
Description:centos Release 5.4 (Final)
release:5.4
Codename:final

This command applies to all Linux, including Redhat, SuSE, Debian and other distributions.

Second, how to view the Linux system kernel version information?


View the Linux kernel version of the command

Method One:

Command: Uname-a

Role: View system kernel version number and system name

Method Two:

Command: Cat/proc/version
Role: View the Directory "/proc" version of the information, you can also get the current system of the kernel edition number and system name
Supplementary Note:
The/proc file system, which is not a normal file system, but an image of the system kernel, that is, the files in the directory are stored in system memory, which provides an interface to the operation of accessing system kernel data in a file system manner. And we use the command "uname-a" information is obtained from the file, of course, with the command of method two directly to see its contents can also achieve the same effect. In addition, the parameter "a" is used to obtain details, if no parameter is to view the system name.

Example 1

The code is as follows Copy Code

Root@mymail ~ # uname
Linux
Root@mymail ~ # Uname-r
2.6.18-164.el5

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.