Home>Article>Operation and Maintenance> What is the command to view the system in linux
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]".
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
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.
# uname -r
Only display the kernel version
# uname -s
Display the operating system name
# uname -v
Display kernel time
# uname -p # uname -i
Display operating system architecture
# uname -o
Print operating system type
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!