uname - Return system name
Synopsis
uname [-amnrsv]
Description
The uname utility 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.
If the -a flag is specified, or multiple flags
are specified, all output is written on a single line, separated by
spaces.
Options
- -a
-
Behave as though the -m, -n, -r,
-s, and -v options were
specified.
- -m
- Write the name of the hardware type of the system to standard output.
- -n
- Write the name of the system to standard output.
- -r
- Write the current release level of the operating system to
standard 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.
Exit Status
- 0 on success
- >0 if an error occurs
Related information