首页
首页 » 系统管理 » uname

uname

uname
功能说明:显示系统信息。
语  法:uname [-amnrsv][--help][--version]
补充说明:uname可显示电脑以及操作系统的相关信息。
参  数:
 -a或--all  显示全部的信息。 
 -m或--machine  显示电脑类型。 
 -n或-nodename  显示在网络上的主机名称。 
 -r或--release  显示操作系统的发行编号。 
 -s或--sysname  显示操作系统名称。 
 -v  显示操作系统的版本。 
 --help  显示帮助。 
 --version  显示版本信息。

uname

uname [options]

Print information about the machine and operating system. Without options, print the name of the kernel (Linux).

Options

-a, --all

Combine all the system information from the other options.

-i, --hardware-platform

Print the system's hardware platform.

-m, --machine

Print the name of the hardware that the system is running on.

-n, --nodename

Print the machine's hostname.

-o, --operating-system

Print the operating system name.

-p, --processor

Print the type of processor.

-r, --kernel-release

Print the release number of the kernel.

-s, --kernel-name

Print the name of the kernel (Linux). This is the default action.

-v, --kernel-version

Print build information about the kernel.

--help

Display a help message and then exit.

--version

Print version information and then exit.