How to check the kernel version in Linux using uname command Line tool
Wondering which Linux kernel version your system uses? This article is all about how to check the kernel version in Linux using uname command-line tool. uname command-line tool is used for print information about the current system. Here are several ways to check your kernel version in the Linux terminal using uname tool. In the previous articles, we learn about How to install Red hat Linux 5 on your system (Graphical installation) and All netstat commands for Linux network management explained with examples.
Now in this article, we will learn about how to know your kernel name, machine hardware name, node name, and all other information related to your Linux operating system. By using uname tool you can check all the specifications of your Linux operating system easily on your screen. Like kernel version and name, machine hardware name, processor type, operating system, and many more things.
Now, first of all, login with root user in the Linux operating system to use these given below commands and know all of your specifications. You can also use these commands with a general user and see all the specifications of your Linux system.
To know kernel version of Linux operating system
[[email protected] ~]# uname -r 2.6.18-164.el5
Here this output has a meaning which is given below
Here, 2: – indicates kernel version
6: – indicates the major revision of the kernel
18: – indicates the minor revision of the kernel number
164: – indicates immediate fixing/bug fixing for critical error
el5: – indicates the version of Linux like I am having RHEL 5 so it shows el5.
To know full specification on a Linux operating system use given below command and also saw output
[[email protected] ~]# uname -mrsn Linux localhost.localdomain 2.6.18-164.el5 i686
This command is also used for saw full specification of a Linux operating system. It will also show you the processor name and also show date and time of system
[[email protected] ~]# uname -a Linux localhost.localdomain 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:54 EDT 2009 i686 i686 i386 GNU/Linux
If other commands will do not work on your system then use given below command to know specification on any Linux operating system version.
[[email protected] ~]# uname -mrs Linux 2.6.18-164.el5 i686
To know full specification of your system and kernel version using /proc/version file use below-given command
[[email protected] ~]# cat /proc/version
[[email protected] ~]# less /proc/version
[[email protected] ~]# more /proc/version
These commands give the same output and these commands will be applicable to all the versions of the Linux operating system. Output is given below
Linux version 2.6.18-164.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Tue Aug 18 15:51:54 EDT 2009
To know all installed kernel on your system using package management tool use below-given command
[[email protected] ~]# rpm -q kernel kernel-2.6.18-164.el5
The Output shows you the kernel version of your system.
To know kernel version use given command
[[email protected] ~]# uname -v #1 SMP Tue Aug 18 15:51:54 EDT 2009
To know your node name use given command
[[email protected] ~]# uname -n localhost.localdomain
This output shows your node name (hostname) like my node name (hostname) is localhost.
To know your machine hardware address use given command
[[email protected] ~]# uname -m i686
It will show your machine hardware address on your screen. As the output is shown just below the command.
To know your kernel name you can use given command.
[[email protected] ~]# uname -s Linux
To know your processor type use given below command
[[email protected] ~]# uname -p i686
Some other commands which are helpful for beginners are given here with outputs will be shown below to saw your computer’s full specification and also to see kernel version information on your system.
[email protected] ~]# uname -i i386 [[email protected] ~]# uname -o GNU/Linux
Here uname -i command stand for print the hardware platform and uname -o command stand for print the operating system running on your machine at that time.
To print out all version information use given below command
[[email protected] ~]# uname --version uname (GNU coreutils) 5.97 Copyright (C) 2006 Free Software Foundation, Inc. This is free software. You may redistribute copies of it under the terms of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent permitted by law. Written by David MacKenzie.
To get help regarding uname command line use given below command
[[email protected] ~]# uname --help Usage: uname [OPTION]... Print certain system information. With no OPTION, same as -s. -a, --all print all information, in the following order, except omit -p and -i if unknown: -s, --kernel-name print the kernel name -n, --nodename print the network node hostname -r, --kernel-release print the kernel release -v, --kernel-version print the kernel version -m, --machine print the machine hardware name -p, --processor print the processor type or "unknown" -i, --hardware-platform print the hardware platform or "unknown" -o, --operating-system print the operating system --help display this help and exit --version output version information and exit Report bugs to <[email protected]>.
These commands gave you some additional information about your Linux operating system, kernel version, and many more things regarding your machine. If you have any problem regarding this feel free to ask through the comment section anytime.
If you want to saw this full process in video format click on given below link and go to my youtube channel Technohelper24 com