Blog Single
Getting Kernel related information

Using uname command will collect basic information about our working kernel.

[student@krosumlabs ~]$ uname # display working kernel name
Linux

[student@krosumlabs ~]$ uname -s # -s option display kernel name
Linux

[student@krosumlabs ~]$ uname -r # display kernel released version
3.10.0-327.28.3.el7.x86_64

We can combine both options (-rs or -sr ) display kernel name and version

[student@krosumlabs ~]$ uname -rs # kernel name and version details
Linux 3.10.0-327.28.3.el7.x86_64

[student@krosumlabs ~]$ uname -sr # kernel name and version details
Linux 3.10.0-327.28.3.el7.x86_64

[student@krosumlabs ~]$ uname -p # print the processor type
X86_64

[student@krosumlabs ~]$ uname -n # display network node hostname
krosum labs

[student@krosumlabs ~]$ uname -o # display name of operating system
GNU/Linux

[student@krosumlabs ~]$ uname -m # Display system hardware name
X86_64

[student@krosumlabs ~]$ uname -v # Display kernel version
#2 SMP Fri Jul 14 20:09:40 PDT 2017

[student@krosumlabs ~]$ uname -i # print the hardware platform
X86_64

[student@krosumlabs ~]$ uname -a (or) uname --all
-a option: It prints all the system information in the following order

Kernel name, network node hostname, kernel release date, kernel version, machine hardware name, hardware platform, operating system.

Linux krosumlabs 4.1.12-94.3.9.el7uek.x86_64 #2 SMP Fri Jul 14 20:09:40 PDT 2017 X86_64 X86_64 GNU/Linux

# customizing system commands in command `command` structure.

[student@krosumlabs~]$ echo “ My working kernel name is:`uname`
My working kernel name is: Linux

[student@krosumlabs~]$ echo “ `uname` released version is: `uname -r`
Linux released version is: 4.1.12-94.3.9.el7uek.X86_64

Tags:
Share:
Comments
Write a comment
Your email address will not be published. Required fields are marked *
Review*
Name*
Email*
Notify me of new posts by email