Home>Article>Operation and Maintenance> What is the command to view the system in linux

What is the command to view the system in linux

青灯夜游
青灯夜游 Original
2022-03-09 15:05:08 14058browse

The command to view system information in Linux is "uname". The uname command is used to print current system-related information (including host, kernel version, architecture, kernel time, architecture type, etc.); the syntax is "uname [-amnrsv][--help][--version]".

What is the command to view the system in linux

The operating environment of this tutorial: CentOS 7 system, Dell G3 computer.

The command to view system information in Linux is "uname".

Linux uname (full English spelling: unix name) command is used to display system information.

uname can display computer and operating system related information (including host, kernel version, architecture, kernel time, architecture type).

Syntax:

uname [-amnrsv][--help][--version]

uname options

  • -a or --all: display all information;

  • -m or --machine: Print the computer type;

  • -n or --nodename: Print only the external host name;

  • -r or --release: only prints the kernel version;

  • -s or --sysname: only prints the operating system, here it is fixed to Linux;

  • -v: Print kernel compilation time

  • -p or --processor: Print system architecture, such as X86_64;

  • -i or --hardware-platform: print hardware architecture;

  • -o or --operating-system: print operating system name;

  • --help: Print help information;

  • --version: Query version information.

Common cases

# uname -a

What is the command to view the system in linux

linux uses uname to view detailed system information

You can see that the output information is complete.

# uname -n

Only display the external host name.

What is the command to view the system in linux

# uname -r

Only display the kernel version

What is the command to view the system in linux

# uname -s

Display the operating system name

What is the command to view the system in linux

# uname -v

Display kernel time

What is the command to view the system in linux

# uname -p # uname -i

Display operating system architecture

What is the command to view the system in linux

What is the command to view the system in linux

# uname -o

Print operating system type

What is the command to view the system in linux

Related recommendations: "Linux Video Tutorial"

The above is the detailed content of What is the command to view the system in linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What is nginx in linux Next article:What is nginx in linux