The kernel version will be listed in the like Kernel: like below. The hostnamectl is a new command which provides very useful information about the current operating system, distribution, and kernel. uname -a Check/Display Linux Kernel Version with hostnamectl Command If you are working with the FreeBSD you can use the -a option with the uname command. 29 is the path or update level which is generally added by the distribution creators.We can see that our kernel is very near to the latest kernel manor release version. We can see that our kernel is the latest with the main kernel version It is more convenient.The output will be like below which is the only kernel version major and minor numbers. VBoxPciLinuxInit How do you check Linux kernel version and other information?Īmong the three ways discussed here, I use uname all the time. usb usb2: Manufacturer: Linux 4.4.0-97-generic xhci-hcd usb usb1: Manufacturer: Linux 4.4.0-97-generic xhci-hcd The output will have a few lines but you should be able to identify the Linux kernel version there easily. But since you are here just to check Linux kernel version, grepping on Linux should give the desired output. Since dmesg provides quite an awful lot of information, you should use a command like less to read it. It is also very useful in getting system information. Find Linux kernel version using dmesg commadĭmesg is a powerful command used to write the kernel messages. You can see the kernel version 4.4.0-97-generic here. You’ll see an output similar to what we saw with uname. Just look at the content of this file: cat /proc/version In Linux, you can also find the Linux kernel information in the file /proc/version. Find Linux kernel using /proc/version file So let’s see other commands to find Linux kernel version. GNU/Linux – Operating system (and no it won’t show the distribution name).x86_64 – Operating system architecture (You can run a 32 bit OS on a 64-bit processor).Last compilation timestamp is also there. #120-Ubuntu SMP Tue Sep 19 17:28: – This means that Ubuntu compiled 4.4.0-97-generic 120 time.4.4.0-97-generic – Kernel release (we just saw that).If you run the same command on BSD or macOS, the result will be different. Let me explain the output and give it a meaning: ![]() ![]() The output of the command should like this: Linux itsfoss 4.4.0-97-generic #120-Ubuntu SMP Tue Sep 19 17:28: x86_64 x86_64 x86_64 GNU/Linux This will provide more system information if you want that. You can also use uname command with option -a. For Ubuntu server edition, it should be server. For Ubuntu, it means I am using the desktop version. generic – distribution specific string.This means that you are running Linux kernel 4.4.0-97 or in more generic terms, you are running Linux kernel version 4.4.īut what do other digits mean here? Let me explain it to you: The output will be something similar to this: 4.4.0-97-generic Open a terminal and use the following command: uname -r You can also use it to know if you are using a 32-bit or 64-bit system. Uname is the Linux command to get system information. But these commands are generic and can be used on Fedora, Debian, CentOS, SUSE Linux or any other Linux distribution. I am using Ubuntu 16.04 while writing this article.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |