To find the version of the Linux kernel that is currently running on your system, you can use the following command:
uname -r
Running this command in a terminal will display the kernel version number, for example:
5.13.0-28-generic
The output of this command shows the major version number (5 in the example), the minor version number (13 in the example), and the patch level (0-28-generic in the example).
You can also use the following command to display additional information about the running kernel:
uname -a
This will display the kernel name, version, release, and other details, for example:
Linux mycomputer 5.13.0-28-generic #31-Ubuntu SMP Fri Jan 14 15:17:49 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
This output includes the machine name (mycomputer
), the kernel version and release, the build number (#31-Ubuntu
), the system architecture (x86_64
), and other details.