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

What is the command to view the system in linux

青灯夜游
Release: 2022-03-09 15:05:08
Original
14229 people have browsed it

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]
Copy after login

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
Copy after login

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
Copy after login

Only display the external host name.

What is the command to view the system in linux

# uname -r
Copy after login

Only display the kernel version

What is the command to view the system in linux

# uname -s
Copy after login

Display the operating system name

What is the command to view the system in linux

# uname -v
Copy after login

Display kernel time

What is the command to view the system in linux

# uname -p
# uname -i
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template