How do I check the version of the Linux kernel?
You can check the Linux kernel version by using one of the following commands:
- what is your username
uname -r
This will display the current running kernel version.
- feline
- The version information for the operating system.
cat /proc/version
This will display the kernel version and other relevant information.
- The release information of the Linux distribution
lsb_release -a
This will display release information, including the kernel version.
- display messages
- Version of Linux
dmesg | grep "Linux version"
This will display information during boot up, including the kernel version.
- release information stored in the /etc/ directory
cat /etc/os-release
This will display information about the operating system, including the kernel version.
These methods can be used in most Linux distributions.