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, files will in the 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

Tagged with:
Posted in Uncategorized

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: