System Info

uname

Print system information including kernel name, version, and architecture.

Synopsis

syntax
uname [OPTION]...

Examples

Show all system information
uname -a
Print kernel version
uname -r
Print architecture (x86_64, aarch64, etc)
uname -m
Print hostname
uname -n

Common options

FlagDescription
-aPrint all information
-rKernel release
-mMachine hardware name (architecture)
-nNetwork hostname
-sKernel name

About uname

The `uname` command print system information including kernel name, version, and architecture. System information commands provide insight into hardware, kernel, memory, disk, and user session details.

These are typically the first tools you reach for when diagnosing system problems, capacity planning, or auditing a server's configuration. They work across most Linux distributions without additional packages.

The command accepts 5 commonly used flags shown above, though the full set of options is available in the man page (`man uname`). The 4 examples on this page cover typical real-world usage patterns that you can copy and adapt for your own workflows.

Related commands

More System Info Commands

Other commands in the System Info category

Related tools