uname
uname [OPTION]...
Print certain system information. With no OPTION, same as -s.
Options
--all,-a-
Behave as though all of the options -mnrsvo were specified.
--kernel-name,-s-
print the kernel name.
--nodename,-n-
print the nodename (the nodename may be a name that the system is known by to a communications network).
--kernel-release,-r-
print the operating system release.
--kernel-version,-v-
print the operating system version.
--machine,-m-
print the machine hardware name.
--operating-system,-o-
print the operating system name.
--processor,-p-
print the processor type (non-portable)
--hardware-platform,-i-
print the hardware platform (non-portable)
Examples
Print kernel name:
uname
Print all available system information:
uname {{[-a|--all]}}
Print system architecture and processor information:
uname {{[-mp|--machine --processor]}}
Print kernel name, kernel release, and kernel version:
uname {{[-srv|--kernel-name --kernel-release --kernel-version]}}
Print system hostname:
uname {{[-n|--nodename]}}
Print the current operating system name:
uname {{[-o|--operating-system]}}
Display help:
uname --help
The examples are provided by the tldr-pages project under the CC BY 4.0 License.
Please note that, as uutils is a work in progress, some examples might fail.