News‎ > ‎

What Linux kernel am I running?

posted Jun 23, 2015, 8:02 AM by Ron Cotton   [ updated Jun 23, 2015, 8:09 AM ]
The many ways that you can do it... Tested on Ubuntu:

#1.  uname is a UNIX throwback that's part of the GNU Coretools (also works in Android and Mac OS X)
uname --kernel-release

#2.  /proc is a pseudo-filesystem that stores runtime system information, /proc/version is where the kernel is...
cat /proc/version

#3. directory listing of the compressed vmlinux bootable kernel, known as vmlinuz
ls /boot | grep vml

#4. boot messages about what linux version is running
dmesg | grep "Linux version"

#5. Checking the debian package management system (somewhat distro/package manager dependent)
dpkg --list | grep linux-i

Removing old versions of kernel images (using debian package management system)
sudo apt-get autoremove