uname(1)
NAME
uname − print name of current system
SYNOPSIS
uname [ −aimnprsv ]
uname [ −S system_name ]
AVAILABILITY
SUNWcsu
DESCRIPTION
The uname utility prints information about the current system on the standard output. When options are specified, symbols representing one or more system characteristics will be written to the standard output. If no options are specified, uname prints the current operating system’s name. The options print selected information returned by uname(2), sysinfo(2), or both.
OPTIONS
The following options are supported:
−a Print all information.
−i Print the name of the hardware implementation (platform).
−m Print the machine hardware name (class).
−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 processor type.
−r Print the operating system release.
−s Print the name of the operating system. This is the default.
−v Print the operating system version.
−S system_name
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 <sys/utsname.h>. Only the super-user is allowed this capability.
EXAMPLES
The following command:
example% uname −sr
writes the operating system name and release level, separated by one SPACE character.
ENVIRONMENT
See environ(5) for descriptions of the following environment variables that affect the execution of uname: LC_CTYPE, LC_MESSAGES, and NLSPATH.
EXIT STATUS
The following exit values are returned:
0 The requested information was successfully written.
>0 An error occurred.
SEE ALSO
sysinfo(2), uname(2), environ(5)
SunOS 5.5 — Last change: 1 Feb 1995