FerdieQO
Well-known member
- Joined
- Jul 15, 2016
- Messages
- 227
- Points
- 28
Have you ever wondered what is your Kernel Version on your CentOS?
These are steps that I want to show you how to get your kernel version of your CentOS 6 Linux system.
So how do we can find out which version of Linux kernel on our CentOS 6 server that using?
Just like in any other Linux distribution uname -r command can be used to get CentOS 6 kernel version.

In CentOS 6 /proc/sys/kernel/osrelease file also contains the kernel information. We can read the file using cat command.

As you can see both commands print the same information. So you can use either uname -r†or cat /proc/sys/kernel/osrelease command to get CentOS 6 kernel version.
These are steps that I want to show you how to get your kernel version of your CentOS 6 Linux system.
So how do we can find out which version of Linux kernel on our CentOS 6 server that using?
Just like in any other Linux distribution uname -r command can be used to get CentOS 6 kernel version.
Code:
uname -r

In CentOS 6 /proc/sys/kernel/osrelease file also contains the kernel information. We can read the file using cat command.
Code:
cat /proc/sys/kernel/osrelease

As you can see both commands print the same information. So you can use either uname -r†or cat /proc/sys/kernel/osrelease command to get CentOS 6 kernel version.