LinuxCommandLibrary

uname

TLDR

Show all system information

$ uname -a
copy
Show kernel name
$ uname -s
copy
Show hostname
$ uname -n
copy
Show kernel release version
$ uname -r
copy
Show kernel version
$ uname -v
copy
Show machine hardware name (architecture)
$ uname -m
copy
Show operating system
$ uname -o
copy

SYNOPSIS

uname [options]

DESCRIPTION

uname prints system information about the machine and operating system. It's commonly used in scripts to detect the platform and adjust behavior accordingly.
The most common uses are uname -a for all information and uname -m to determine the system architecture (useful for downloading correct binaries).
Different Unix systems may support different options. The -s, -n, -r, -v, and -m options are most portable across Unix variants.

PARAMETERS

-a, --all

Print all information
-s, --kernel-name
Print kernel name (e.g., Linux)
-n, --nodename
Print network hostname
-r, --kernel-release
Print kernel release (e.g., 5.15.0-generic)
-v, --kernel-version
Print kernel version
-m, --machine
Print machine hardware name (e.g., x86_64, arm64)
-p, --processor
Print processor type
-i, --hardware-platform
Print hardware platform
-o, --operating-system
Print operating system

CAVEATS

On some systems, -p and -i may return "unknown" if the information isn't available.
The output of uname -m varies by system: x86_64, amd64, arm64, aarch64 may represent similar architectures on different systems.
For detailed OS distribution information on Linux, check /etc/os-release or use lsb_release.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Bmax Mini PC B2 Power Intel 5205U 8GB DDR4 256GB M.2 NVMe SSD ,HDMI 1.4&DP 1.2, USB3.2,4K Dual Display 2.4G/5G WiFi & BT5.0 Mini Desktop Computers /Office/Design

Bmax Mini PC B2 Power Intel 5205U 8GB DDR4 256GB M.2 NVMe SSD ,HDMI 1.4&DP 1.2, USB3.2,4K Dual Display 2.4G/5G WiFi & BT5.0 Mini Desktop Computers /Office/Design

$169.99
KIWITATA 2X Classic SNES USB Controller for PC Gamings, Retro SNES Wired USB Game Emulator Controller for Windows XP 7 8 11 Mac Raspberry Pi

KIWITATA 2X Classic SNES USB Controller for PC Gamings, Retro SNES Wired USB Game Emulator Controller for Windows XP 7 8 11 Mac Raspberry Pi

$16.99
nuphy Air75 V2 Portable 75% Mechanical Keyboard,Wireless Keyboard

nuphy Air75 V2 Portable 75% Mechanical Keyboard,Wireless Keyboard

$129.95
Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community

nuphy Air75 V2 Portable 75% Mechanical Keyboard,Wireless Keyboard

nuphy Air75 V2 Portable 75% Mechanical Keyboard,Wireless Keyboard

$129.95
KIWITATA 2X Classic SNES USB Controller for PC Gamings, Retro SNES Wired USB Game Emulator Controller for Windows XP 7 8 11 Mac Raspberry Pi

KIWITATA 2X Classic SNES USB Controller for PC Gamings, Retro SNES Wired USB Game Emulator Controller for Windows XP 7 8 11 Mac Raspberry Pi

$16.99
New Raspberry Pi 3 Model B+ Board Raspberry PI 3B+

New Raspberry Pi 3 Model B+ Board Raspberry PI 3B+

$54.00