UNAME(1) BSD General Commands Manual UNAME(1)NAMEuname — display information about the system
SYNOPSISuname [-amnrsv]
DESCRIPTION
The uname command writes the name of the operating system implementation
to standard output. When options are specified, strings representing one
or more system characteristics are written to standard output.
The options are as follows:
-a Behave as though the options -m, -n, -r, -s, and -v were speci‐
fied.
-m Write the type of the current hardware platform to standard out‐
put.
-n Write the name of the system to standard output.
-r Write the current release level of the operating system to stan‐
dard output.
-s Write the name of the operating system implementation to standard
output.
-v Write the version level of this release of the operating system
to standard output.
If the -a flag is specified, or multiple flags are specified, all output
is written on a single line, separated by spaces.
The uname utility exits 0 on success, and >0 if an error occurs.
SEE ALSOsysctl(8), sysctl(3), uname(3)HISTORY
The uname command appeared in 4.4BSD.
STANDARDS
The uname command is expected to conform to the IEEE Std 1003.2
(“POSIX.2”) specification.
BSD June 5, 2024 BSD