Notice that in the output shown below, we see both the current and prior kernel versions. The dpkg command can also be used to identify the kernel version. media: Linux media interface: v0.10 Linux video capture interface: v2.00 usb usb2: Manufacturer: Linux 4.15.0-30-generic ehci_hcd usb usb1: Manufacturer: Linux 4.15.0-30-generic ehci_hcd You can also extract kernel information from your dmesg output: On some systems, you can use the rpm command as shown below to provide information on your kernel. We also see some of the other information that the uname command provided. In the following command, we see the Linux distribution name along with the kernel name. GNU/Linux –- the operating system (distribution name not included) #32-Ubuntu SMP –- the number of times this version of the kernel was compiled Thu Jul 26 17:42: –- the last time the kernel was compiled (timestamp) x86_64 –- the machine architecture x86_64 –- the processor architecture x86_64 –- the OS architecture The compilation stats shown on the right in the top line of the output above also tells you some interesting things. | | +- kernel version +- compilation stats To add the the kernel's name, add the "s" switch: OK, so the kernel in this case is "4.15.0-30-generic," and each portion of the name provides some detail on the kernel's identity. The output is wrapped around below to make it easy to label the fields. Notice that the third field shows the same information we see above. In the display below, each of the fields is explained. If you use, the uname -a command instead, you will get quite a bit more information. In the first display above, you can see that each field has been annotated. | | | | +- the distribution-specific stringĪdd an "s" and your output will include the kernel's name: It provides a succinct answer to your question but in a format that also includes a number of fields each which provides a particular piece of information. The simplest and most straight-forward command for providing information on your kernel is the uname -r command. How much can your Linux system tell you about the kernel it's running and what commands are available to help you ask? Let's run through some of them. Once installed, type neofetch in the Linux command line and hit Enter.What can your Linux system tell you about the Linux kernel it's using? Let's do a little probing and see. It can be installed using the following commands, depending on which distribution and package manager you’re using. Now, the Neofetch command doesn’t come installed by default, so you’d need to install it first to check your version number. In addition to the artwork, it shows everything you would need to know about the distro, including the Linux kernel version, resolution, desktop environment, processor, GPU, and memory. Unlike other commands that only display text, Neofetch is a fancy command that displays the ASCII art of the logo of the distro you are using. You could also use -d, -r, and -c to find out the description, release, and codename using this command, respectively. The -a stands for “all” in the command, meaning you are asking the “lsb_release” command to list all the details about your Linux distro.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |