Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (10) AWS (5) numerology (5)

Tuesday, December 22, 2020

How to check kernel version in linux

How to check kernel version in linux

There are various commands by which we can check current kernel version in linux:

1. #uname -r 

2. #cat /proc/version 

3. #dmesg |grep -i linux

4. #hostnamectl

by above commands we can get current kernel version installed on the system. 

If we want more information like installed date, release date etc.. of that kernel rpm then use below commands:

1. #rpm -qa --last |grep -i kernel  --> to get the date of kernel update

2. #cat /var/log/yum.log |grep -i kernel  ---> If the kernel update is done via yum repository then in the yum.log files will get information of when the kernel installed or kernel related packages updated.

3. #rpm -qi <kernel version name>  ---> We can get the complete kernel version name using above 1-4 commands.


Regards,

Kiraan B Jadhav

No comments:

Post a Comment