OpenBSD manual page server

Manual Page Search Parameters

UNAME(1) General Commands Manual UNAME(1)

unameprint operating system name

uname [-amnprsv]

The uname utility writes symbols representing one or more system characteristics to the standard output.

The options are as follows:

Behave as though all of the options -mnrsv were specified.
Print the machine hardware name.
Print the nodename (the nodename may be a name that the system is known by to a communications network).
Print the machine processor architecture name.
Print the operating system release.
Print the operating system name.
Print the operating system version.

If no options are specified, uname prints the operating system name as if the -s option had been specified.

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

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

The uname utility is compliant with the IEEE Std 1003.1-2008 (“POSIX.1”) specification.

The flag [-p] is an extension to that specification.

The uname command appeared in 4.4BSD.

October 21, 2011 OpenBSD-5.6