Linux command check RHEL/CentOS kernel version :
You can check CentOS kernel version through following command which works with all Linux distributions, such as Red Hat, CentOS, Debian, and Ubuntu. It also works on other UNIX-like operating systems such as HPUX, FreeBSD, OpenBSD, Solaris, etc
-----
# uname -r
-----
You can use the following options with uname command to get more information regarding kernel :
To know complete information about kernel :
-----
# uname -a
-----
You can check CentOS kernel version through following command which works with all Linux distributions, such as Red Hat, CentOS, Debian, and Ubuntu. It also works on other UNIX-like operating systems such as HPUX, FreeBSD, OpenBSD, Solaris, etc
-----
# uname -r
-----
You can use the following options with uname command to get more information regarding kernel :
- The kernel name (-s)
- The Network node hostname (-n)
- The kernel release (-r)
- The kernel version (-v)
- The machine hardware name (-m)
- The processor type (-p)
- The hardware platform (-i)
- The operating system (-o)
To know complete information about kernel :
-----
# uname -a
-----