How to show kernel name of your Linux by using uname command line tool


This article is all about how to show kernel name of your Linux operating system using uname command line tool. uname command line tool is used for print information about the current system. In the previous articles, we learn about how to lock and unlock a user in Linux operating system and File and Folder management in Linux. 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 command line tool you can saw 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.

uname command in linux

Now use given below commands in Linux operating system to know all the kernel specifications on your system

First of all, log in with root user in Linux operating system on your machine to use these given below command and know all of your specifications. You can also be logged into a general user and see all the specification of your Linux system.

To know kernel version of Linux operating system

[[email protected] ~]# uname -r

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 all commands give same output and these commands will be applicable on all the versions of 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

The Output will also be shown it shows you the kernel name 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

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

It will show your machine hardware name on your screen. As the output is shown above below the command.
To know your kernel name you can use given command. 

[[email protected] ~]# uname -s

To know your processor name use given command

[[email protected] ~]# uname -p

Some other commands which are helpful for beginners are given here with outputs will be shown below to saw your computers full specification and also see kernel version information on your system.

[email protected] ~]# uname -i

[[email protected] ~]# uname -o

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 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]>.

                                     THAT’S IT

These commands give you some additional information about your Linux operating system, kernel version and Much more things regarding your machine. If you have any problem regarding this feel free to ask through 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

Your thoughts?

This site uses Akismet to reduce spam. Learn how your comment data is processed.