Prints the major version number of the current kernel
The kernelversion command is used to print the major version number of the current kernel.
kernelversion