Use the kernelversion command of linux to print the kernel major version number
This article mainly introduces the use of linux kernel version command print kernel major version number, the text is very detailed, has a certain reference value, interested friends must read!
The kernel version command prints the major version number of the current kernel. The kernelversion command outputs only the major and minor version information of the current kernel. To display more comprehensive kernel information, use the uname command.
Syntax format: kernelversion
Reference Example
Print kernel major version number:
[root@linuxcool ~]# kernelversion2.6 above is to print all the contents of the kernel major version number using the kernelversion command of linux. Thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!