Skip to content

uname command

Show the kernel version and system architecture.

On this page

Syntax

uname [options]

Provided by the coreutils package. Run man uname for the full manual.

Common options

OptionWhat it does
-aEverything
-rKernel release
-mMachine architecture
-nHost name
-sKernel name

Examples

  1. All system information

    uname -a
  2. Kernel version

    uname -r
  3. Architecture (x86_64, aarch64)

    uname -m
  4. Distribution name and version

    cat /etc/os-release
  5. Short distribution version

    lsb_release -a

uname guides

← All Linux commands · Suggest a fix

Back to top