How much can your Linux system tell you about the kernel it’s running and what commands are available to help you ask? Let’s run through some of them.
The simplest and most straight-forward command for providing information on your kernel is the uname -r command. It provides a succinct answer to your question, but in a format that also includes a number of fields each which provides a particular piece of information.
$ uname -r 4.15.0-30-generic ^ ^ ^ ^ ^ | | | | | | | | | | | | | | +-- the distribution-specific string | | | +------- the latest bug fix | | +---------- the minor revision | +------------ the major revision +--------------- the kernel version
Add an “s” and your output will include the kernel’s name:
Source: Network World