uname command in Linux with options and examples

Hi Friends! Today we will learn uname command in Linux with options and examples, this command is mainly used to print the System information.

It will be used to print a piece of information like Kernel name, kernel version processor type, and many more.

So, now we will move to the first command of uname with options and examples.

uname command in Linux with options

So, we got our first output by using -a option with the uname command and examples.

-a option is used to print all the information and step by step we will look at the information in detail.

$ uname -a
Output:	
Linux tla 5.3.0-51-generic #44~18.04.2-Ubuntu SMP Thu Apr 23 14:27:18 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

I have highlighted the output into different parts one is green and one is pink let’s learn about the output now.

Linux : This is the Kernel Name that we have.

How we can check the kernel name with uname command?

$ uname -s 
Output:
Linux

tla : This is the network node hostname of the System.

How to check the hostname of the System, Server or PC in Linux.

$ uname -n
Output:
tla

5.3.0-51-generic : This is a kernel release.

How to check the Kernel release with uname command.

$ uname -r 
Output:
5.3.0-51-generic

#44~18.04.2-Ubuntu SMP Thu Apr 23 14:27:18 UTC 2020: This is a Kernel Version.

How to check the Kernel Version with uname command.

$ uname -v
Output:
#44~18.04.2-Ubuntu SMP Thu Apr 23 14:27:18 UTC 2020

x86_64: This is the machine hardware architecture of the System.

How to check the machine hardware architecture with uname command.

$ uname -m
Output:
x86_64

x86_64: This is the processor architecture type of the current System.

How to check the processor architecture in Linux with uname command.

$ uname -p
Output:
x86_64

x86_64: This is a hardware platform architecture.

How to check the hardware platform architecture in Linux with uname command.

$ uname -i
Output:
x86_64
GNU/Linux: This is the operating system that we are using.

How to check the Operating System that we are using in Linux with uname command.

$ uname -o
Output:
GNU/Linux

If you want to learn about the disk usage, memory, hardware list, and hardware information via dmidecode command refer this links

Here you can find the source code of uname command.

A cheat sheet of uname command in Linux with options and examples
How to find all information about system

Command:
#uname -a
How to get Kernal Name

Command:
#uname -s
How to get Network node hostname

Command:
#uname -n
How to get information about kernel release.

Command:
#uname -r
How to get kernel version.

Command:
#uname -v
How to get Machine Hardware Name.

Command:
#uname -m
How to get Processor type.

Command:
#uname -p
How to get Hardware Platform.

Command:
#uname -i
How to get Operating System.

Command:
#uname -o
0%

"uname" command print the information about System?

Correct! Wrong!

we can check the RAM size form the "uname" command?

Correct! Wrong!

Which option will be used to print the operating system?

Please select 2 correct answers

Correct! Wrong!

How to find the version of uname command?

Please select 2 correct answers

Correct! Wrong!

Can we check the hostname with option --nodename?

Correct! Wrong!

Let's Play some Quiz on System information command uname
Thanks for your valuable time!
To Learn more Basic command you can go to "LINUX BASIC COMMAND SECTION" and Spread the Knowledge Keep Supporting us! Follow us on our ID's: >> Instagram: @tastethelinux_official >>Facebook: https://fb.me/tastethelinuxofficial >>Twitter: @LinuxTaste

Share your Results:

Give your valuable time