uname(1)
NAME
uname − print name of current system
SYNOPSIS
uname [ −amnprsv ]
uname [ −S system_name ]
AVAILABILITY
SUNWcsu
DESCRIPTION
uname prints information about the current system on 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) and/or sysinfo(2).
OPTIONS
−a Print all information.
−m Print the machine hardware name.
−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 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 <sys/utsname.h>. Only the super-user is allowed this capability.
ENVIRONMENT
If any of the LC_∗ variables ( LC_CTYPE, LC_MESSAGES, LC_TIME, LC_COLLATE, LC_NUMERIC, and LC_MONETARY ) (see environ(5)) are not set in the environment, the operational behavior of uname for each corresponding locale category is determined by the value of the LANG environment variable. If LC_ALL is set, its contents are used to override both the LANG and the other LC_∗ variables. If none of the above variables is set in the environment, the "C" (U.S. style) locale determines how uname behaves.
LC_CTYPE
Determines how uname handles characters. When LC_CTYPE is set to a valid value, uname can display and handle text and filenames containing valid characters for that locale. uname can display and handle Extended Unix code (EUC) characters where any individual character can be 1, 2, or 3 bytes wide. uname can also handle EUC characters of 1, 2, or more column widths. In the "C" locale, only characters from ISO 8859-1 are valid.
LC_MESSAGES
Determines how diagnostic and informative messages are presented. This includes the language and style of the messages, and the correct form of affirmative and negative responses. In the "C" locale, the messages are presented in the default form found in the program itself (in most cases, U.S. English).
SEE ALSO
sysinfo(2), uname(2), environ(5)
SunOS 5.1 — Last change: 14 Sep 1992