uname(1) CLIX uname(1)
NAME
uname - Displays name of current UNIX system
SYNOPSIS
uname [-snrvma]
uname [-S system-name]
FLAGS
-s Displays the system name (default).
-n Displays the nodename (the nodename is the name by which the system
is known to a communications network).
-r Displays the operating system release.
-v Displays the operating system version.
-m Displays the machine hardware name.
-a Displays all the above information.
DESCRIPTION
The uname command displays the current system-name of the UNIX system on
stdout. It is mainly useful to determine which system one is using.
On the 3B2 computer, the system name and the nodename may be changed by
specifying a system name argument to the -S flag. The system name
argument is restricted to 8 characters. Only the superuser is allowed
this capability.
EXAMPLES
To display the nodename of your machine on stdout, enter the following:
uname -n
EXIT VALUES
The uname command exits with a value 0 if it succeeds and a value of 1 if
it fails.
RELATED INFORMATION
Functions: uname(2)
2/94 - Intergraph Corporation 1