Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the uname command of linux to display system information

Shulou Source: shulou.com Published: 2022-06-02 18:06:57 10月02日 Update

This article will explain in detail about the use of linux uname command display system information, the editor thinks it is very practical, so share it for you to do a reference, I hope you can get something after reading this article.

The English full name of uname command is "Unix name".

Used to display system-related information, such as hostname, kernel version number, hardware architecture, etc.

If no option is specified, the effect is equivalent to executing the "uname-s" command, which displays the name of the system kernel.

Syntax format: uname [parameters]

Common parameters:

-a display all relevant information about the system-m display computer hardware architecture-n display host name-r display kernel release number-s display kernel name-v display kernel version-p display host processor type-o display operating system name-I display hardware platform

Reference example

Display information such as system hostname, kernel version number, CPU type, etc.:

[root@linuxcool] # uname-a

Linux linuxcool 3.10.0-123.el7.x86_64 # 1 SMP Mon May 5 11:16:57 EDT 2014 x86 "64 GNU/Linux

Only the system hostname is displayed:

[root@linuxcool ~] # uname-n

Linuxcool

Displays the kernel version of the current system:

[root@linuxcool ~] # uname-r

3.10.0-123.el7.x86_64

Displays the hardware architecture of the current system:

[root@linuxcool] # uname-I

X86x64 on the use of linux uname command display system information is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: System display system kernel information host version command hardware name architecture parameters more article type reference good practical operating system full name content Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Linux Docker NVidia Xiaomi