Method One:
Command: Uname-a
Function: View system kernel version number and system name
Method Two:
Command: Cat/proc/version
Function: View the directory "/proc" under the version of the information, you can also get the current system's kernel revision number and system name
Additional notes:
/proc file system, which is not an ordinary file system, but the image of the system kernel, that is, the files in this directory are stored in the system memory, it is a file system to access the system kernel data operation to provide an interface. And we use the command "uname-a" information is obtained from the file, of course, with the command of the method two direct view of its contents can also achieve the same effect. Additionally, the parameter "a" is obtained for details if no parameter is added to view the system name.
Transferred from: http://blog.csdn.net/earlyup/archive/2008/08/07/2784707.aspx
View Linux kernel versions