

Command also displays Linux kernel version. The hostnamectl command can be used to get or set the system hostname. As per the above output, you’re running Linux kernel '4.18.0-477.13. uname (stands for UNIX name) that prints system information such as the host name, Linux kernel version and other details of the operating system on which it is running. Check the kernel version by running the command below: rootxxxx-Linux74 mark uname a Check the kernel version against the Deep Security Agent version. Output: Linux version 5.4.0-72-generic (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #80-Ubuntu SMP Mon Apr 12 17:35:Ĭommand to get only Linux kernel version: cat /proc/version | grep -Po "Linux version \K\S+" 3. The uname command is a quick way to check the Linux kernel version. Open a terminal and type in the following command: uname -r The output will be something similar to this: 4.4. You can also use it to find out whether you’re using a 32-bit or 64-bit system. It can be used to determine Linux kernel version. Find Linux kernel using uname command uname is the Linux command for getting system information. The /proc/version file contains Linux kernel information. The -r option prints the Linux kernel version. The uname command displays information about the system. To check the Linux Kernel version, you can use one of the following commands.

How to find linux kernel version how to#
This tutorial explains how to check Linux kernel version. 7 Answers Sorted by: 399 uname -a for all information regarding the kernel version, uname -r for the exact kernel version lsbrelease -a for all information related to the Ubuntu version, lsbrelease -r for the exact version sudo fdisk -l for partition information with all details. To determine which Linux kernel version is running on the system can be useful when troubleshooting issues. Linux kernel is the main component of the Linux operating system.
