Article Title: Linux kernel and version query commands. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
I:
Command: uname-
Purpose: view the system kernel version number and system name.
II:
Command: cat/proc/version
Purpose: view the version information under the directory "/proc", and obtain the kernel version number and system name of the current system.
Note:
The/proc file system is not a common file system, but an image of the system kernel. That is to say, the files in this directory are stored in the system memory, it provides interfaces for accessing system kernel data in the form of a file system. The information of the command "uname-a" is obtained from this file. Of course, you can use the command of method 2 to directly view the content of the file to achieve the same effect. in addition, if the parameter "a" is added, the system name is displayed.
3. view the redhat release version
# More/etc/redhat-release
CentOS release 4.4 (Final)
Iv. lsb_release-
Log on to the server and execute lsb_release-a to list all version information.