| UNAME(1) | General Commands Manual | UNAME(1) |
uname — print
operating system name
uname |
[-amnprsv] |
The uname utility writes strings
representing one or more system characteristics to the standard output. The
formats and meanings of all these strings vary among operating systems.
The options are as follows:
-a-mnrsv were
specified.-m-n-p-s.-r-s-vIf no options are specified, uname prints
the operating system name as if the -s option had
been specified.
If -a or more than one option is
specified, OpenBSD prints the selected fields
separated by single space characters in the following order: operating
system name, network name, release, version, kernel architecture,
application architecture.
The uname utility exits 0 on
success, and >0 if an error occurs.
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 first appeared in
PWB/UNIX 1.0 and was reimplemented for 4.4BSD.
| June 3, 2024 | openbsd |