Monday, April 23, 2012

HowTo: Find Out RHEL 6 / CentOS 6 Kernel Version

How do I find out my RHEL (Red Hat Enterprise Linux) 6 Linux kernel version number running on HP server?

You need to use the uname command to find name and information about current kernel. It can provide the following information
  1. The kernel name (-s)
  2. The Network node hostname (-n)
  3. The kernel release (-r)
  4. The kernel version (-v)
  5. The machine hardware name (-m)
  6. The processor type (-p)
  7. The hardware platform (-i)
  8. The operating system (-o)

RHEL 6 Kernel Version Command

Open a command-line terminal (select Applications > Accessories > Terminal), OR login to remote server using the ssh command and then type:
$ uname -r
Sample outputs:
2.6.32-220.2.1.el6.x86_6
The following provides a little more information:
$ uname -mrs
Sample outputs:
Linux 2.6.32-220.2.1.el6.x86_64 x86_64
You can see the complete information with the following command:
$ uname -a
Sample outputs:
Linux example.cyberciti.biz 2.6.32-220.2.1.el6.x86_64 #1 SMP Tue Dec 13 16:21:34 EST 2011 x86_64 x86_64 x86_64 GNU/Linux

Find Red Hat Linux Distribution Version

Type the following cat command:
$ cat /etc/redhat-release
Sample outputs:
Red Hat Enterprise Linux Server release 6.2 (Santiago)
You can also view the manual page on uname using the following command:
$ man uname

No comments:

Post a Comment