uname

v0.0.28
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 system architecture and processor information:

uname --machine --processor

Print kernel name, kernel release and kernel version:

uname --kernel-name --kernel-release --kernel-version

Print system hostname:

uname --nodename

Print all available system information:

uname --all

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.