Forever & AlwaysLINUX COMMAND ATLAS

LINUX COMMAND ATLAS · COMMAND GUIDE

Linux uname command

Print system information. The -a flag requests the available details.

GNU Coreutils

Syntax

Command form
uname [OPTION]...

Common options

6 options
OptionWhat it does
-a, --allPrint all available system information.
-s, --kernel-namePrint the kernel name.
-r, --kernel-releasePrint the kernel release.
-m, --machinePrint the hardware machine name.
-n, --nodenamePrint the network node hostname.
-o, --operating-systemPrint the operating-system name (where supported).

Usage examples

2 examples

Print system information. The -a flag requests the available details.

uname -a

Show the kernel release string.

uname -r

Notes

uname reports kernel and machine identifiers; it does not provide a complete inventory of the Linux distribution.