Sunday, April 28, 2024
160
rated 0 times [  160] [ 0]  / answers: 1 / hits: 320744  / 1 Year ago, mon, february 27, 2023, 4:41:26

The path to previous driver is
usually /lib/modules/<kernel-version>/kernel/net/wireless



I need this info so I can finish updating my STA Broadcom wireless. However, I'm a noob at Ubuntu and I'm not sure how to find the kernel version or kernel.


I checked /lib/modules/ and found this:


2.6.27-10-generic  2.6.32-30-generic  2.6.32-34-generic  2.6.32-38-generic
2.6.27-7-generic 2.6.32-31-generic 2.6.32-35-generic 3.2.0-54-generic
2.6.28-19-generic 2.6.32-32-generic 2.6.32-36-generic 3.2.0-54-generic-pae
2.6.31-23-generic 2.6.32-33-generic 2.6.32-37-generic

Which one is the running kernel?


Another question. Is there a snippet so I don't have to cut and paste?


Thanks for your time! :)


More From » command-line

 Answers
2

Well there are multiple ways to find the kernel version


Open terminal and execute:


uname -r

It would display something like:


3.8.0-30-generic

You can get further information on the current kernel with


uname -a

It would display something like:


Linux saurav-P4I45Gx-PE 3.8.0-30-generic #44~precise1-Ubuntu SMP Fri Aug 23 17:33:45 UTC 2013 i686 i686 i386 GNU/Linux

Another way to know the kernel version is to open Synaptic Package Manager and search for linux image. You have to check for the installed Kernel version.


Another way to find version of installed kernels is to run this command:


dpkg -l | grep linux-image | grep ii

or for just the version strings:


dpkg -l | grep linux-image | grep ii | awk '{print $3}'

The latest kernel (the one with the highest version number) will boot by default, so if you have rebooted since the last kernel update, and you have not made adjustments to boot into a kernel other than the default, then you can be reasonably confident that the highest version number displayed will be the version of the running kernel, but you should use uname for more reliable information.


[#29002] Tuesday, February 28, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kneducator

Total Points: 226
Total Questions: 111
Total Answers: 108

Location: Mexico
Member since Sun, Jul 25, 2021
3 Years ago
;