[OpenBSD]

Manual Page Search Parameters

UNAME(1) General Commands Manual UNAME(1)

NAME

unameprint operating system name

SYNOPSIS

uname [-amnprsv]

DESCRIPTION

The uname utility writes symbols representing one or more system characteristics to the standard output.
The options are as follows:
 
 
-a
Behave as though all of the options -mnrsv were specified.
 
 
-m
Print the machine hardware name.
 
 
-n
Print the nodename (the nodename may be a name that the system is known by to a communications network).
 
 
-p
Print the machine processor architecture name.
 
 
-r
Print the operating system release.
 
 
-s
Print the operating system name.
 
 
-v
Print the operating system version.
If no options are specified, uname prints the operating system name as if the -s option had been specified.

EXIT STATUS

The uname utility exits 0 on success, and >0 if an error occurs.

SEE ALSO

hostname(1), machine(1), uname(3)

STANDARDS

The uname utility is compliant with the IEEE Std 1003.1-2008 (“POSIX.1”) specification.
The flag [-p] is an extension to that specification.

HISTORY

The uname command appeared in 4.4BSD.
October 21, 2011 OpenBSD-current