≡ Menu

kernel type

Linux Command: Show Linux Version

What command I need to type to display Linux kernel version and other information such as Linux distribution name? How do I check Linux kernel version number?
[click to continue…]

List or Check Installed Linux Kernels

Q. How do I list all installed kernel on Linux operating system? How do I find out current kernel version?

A. You can use standard package listing command to list installed kernels.

RedHat / CentOS / RHEL / Fedora Linux user

You need to use standard rpm command to list installed software. Type the following command at shell prompt:
$ rpm -qa kernel
Output:

kernel-2.6.18-4.1.15.el5
kernel-2.6.18-8.1.14.el5
kernel-2.6.18-8.1.10.el5

To list / display current kernel

Type the following command:
$ uname -r
$ uname -mrs

Output:

Linux 2.6.18-8.1.14.el5 x86_64

Debian / Ubuntu Linux user

Use dpkg command to list all installed kernel, enter:
$ dpkg --list | grep linux-image
Output:

ii  linux-image-2.6.20-15-generic        2.6.20-15.27                           Linux kernel image for version 2.6.20 on x86/
ii  linux-image-2.6.20-16-generic        2.6.20-16.32                           Linux kernel image for version 2.6.20 on x86/
ii  linux-image-generic                  2.6.20.16.28.1                         Generic Linux kernel image

Q. I am new to Linux. What tools or commands are recommended to troubleshoot performance related problems?
[click to continue…]