How to check kernel version in Ubuntu? Here is the command to check kernel version in Linux and command to find os version in Linux Ubuntu.
How To Check Kernel Version In Ubuntu
‘uname’ prints information about the machine and operating system it is run on. If no options are given, ‘uname’ acts as if the ‘-s’ option were given. If multiple options or ‘-a’ are given, the selected information is printed in this order:
The three uname comamnds to know about Linux Kernel are “uname -r” “uname -v” and “uname -s”.
$ uname -or
or
$ uname -a
The “uname -r” prints the kernel release. The command “uname -s” prints the kernel name.
How To Find OS Version In Ubuntu
The /proc/version file specifies the version of the Linux kernel, the version of gcc used to compile the kernel, and the time of kernel compilation. It also contains the kernel compiler’s user name (in parentheses).
$ cat /proc/version
If you wish to find the Linux distribution name and release version, run the following command:
$ cat /etc/os-release