Identify the Linux Kernel Version

Steps to find the Linux Kernel Version:

If system is in running state:
1. uname -r
2. cat /proc/version
3. dmesg | grep “Linux version”
4. dmesg | grep “Linux”

If system is not in running state:
1. Goto /boot/ folder. Normally Linux kernel image, initrd, config,
System.map files will in the FileName-2.6.xyz format. From this also
you can find the version.

From the Linux kernel source code:
1. make kernelrelease
2. a) make proper
b) echo -e ‘foo:nt@echo $(KERNELRELEASE)ninclude Makefile’ | make -f-
3. cat include/config/kernel.release

Advertisements
Tagged with:
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: