Beginner Package: coreutils

uname

Print kernel and system information.

Syntax

uname [options]

Description

uname reports basic information about the running system — kernel name, version, hostname and machine architecture — and is often the very first command run to confirm what you're logged into.

Examples

uname -a
Print all available system information in one line
uname -r
Print just the kernel release version
uname -m
Print the machine hardware architecture (e.g. x86_64, aarch64)

Applies to

Ubuntu Debian Linux Mint RHEL CentOS / Rocky / AlmaLinux Fedora Arch Linux openSUSE Alpine Linux

Put it into practice

Learn this in context