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.
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 in Linux operating system
[root@localhost ~]# 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
[root@localhost ~]# 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
[root@localhost ~]# 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.
[root@localhost ~]# uname -mrs Linux 2.6.18-164.el5 i686
To know full specification of your system and kernel version using /proc/version file use given below command
[root@localhost ~]# cat /proc/version
[root@localhost ~]# less /proc/version
[root@localhost ~]# 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@example.com) (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 given below command
[root@localhost ~]# rpm -q kernel kernel-2.6.18-164.el5
The Output will also be shown it shows you the kernel name of your system.
To know kernel version use given below command
[root@localhost ~]# uname -v #1 SMP Tue Aug 18 15:51:54 EDT 2009
To know your node name use given below command
[root@localhost ~]# 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 below command
[root@localhost ~]# uname -m i686
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 also can use given below command.
[root@localhost ~]# uname -s Linux
To know your processor name use given below command
[root@localhost ~]# uname -p i686
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.
root@localhost ~]# uname -i i386 [root@localhost ~]# 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 get help regarding uname command line use given below command
[root@localhost ~]# 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 <firstname.lastname@example.org>.
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