20
2010
10

Linux命令:uname

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


--------------------------------------------------------------------------------

英文版本:

ABOUT UNAME

Print name of current system.

SYNTAX

uname [-a] [-i] [-m] [-n] [-p] [-r] [-s] [-v] [-X] [-S systemname]

-a Print basic information currently available from the system. -i Print the name of the hardware implementation (platform). -m Print the machine hardware name (class). Use of this option is discouraged; use uname -p instead. -n Print the nodename (the nodename is the name by which the system is known to a communications network). -p Print the current host's ISA or processor type. -r Print the operating system release level. -s Print the name of the operating system. This is the default. -v Print the operating system version. -X Print expanded system information, one information element per line, as expected by SCO UNIX. The displayed information includes: system name, node, release, version, machine, and number of CPUs. BusType, Serial, and Users (set to "unknown" in Solaris) OEM# and origin# (set to 0 and 1, respectively)

-S systemname The nodename may be changed by specifying a system name argument. The system name argument is restricted to SYS_NMLN characters. SYS_NMLN is an implementation specific value defined in . Only the super-user is allowed this capability.

EXAMPLES

uname -arv - list results similar to the below:

SunOS hope 5.7 Generic_106541-08 sun4m sparc SUNW,SPARCstation-10

« 上一篇 下一篇 »