uname

uname prints information about the system you are running on.

uname [options]
$ uname
Peios
$ uname -a
Peios host-01 1.4.0 #1 SMP 2026-05-10 x86_64 Peios

With no option, uname prints the operating-system name — Peios.

What each option prints #

OptionPrints
-sThe kernel name.
-oThe operating-system name — Peios.
-nThe node name — the name this system is known by on the network.
-rThe kernel release.
-vThe kernel version.
-mThe machine's hardware name (its architecture).
-pThe processor type.
-iThe hardware platform.
-aEverything — equivalent to -mnrsvo.

Give several options and uname prints those fields, in a fixed order, on one line.

The operating system is Peios #

uname -o, and the operating-system field of uname -a, report Peios. This is the field a script should check when it wants to confirm what system it is on.

For the machine architecture alone, arch is the shorter command — it prints exactly what uname -m prints.

Exit status #

CodeMeaning
0The requested information was printed.
1The system information could not be read.

Edit this page