Online Linux Terminal Logo
OnlineLinuxTerminal
System & ProcessesCLI Reference

$uname

Print operating system name and kernel architecture.

Syntax DefinitionPOSIX standard
uname [OPTIONS]
Linux Community2.4k Online

Chat with real Linux users, learn new commands & get free cheat sheet PDFs.

Try `uname` Live in Interactive Sandbox

Zero-install client simulation with real-time feedback.

Open in Fullscreen Workspace↗
bash — terminal

Overview & How uname Works

`uname` (Unix Name) prints details about the current operating system, Linux kernel version, hostname, and CPU architecture (x86_64, aarch64, arm).

Common Flags & Command Options

Flag / OptionDescription
-a, --allPrint all system info in sequence (kernel name, hostname, release, version, machine).
-r, --kernel-releasePrint the kernel release version.
-m, --machinePrint the machine hardware architecture (e.g., x86_64).

Practical Real-World Examples

Example #1Print complete system information
uname -a

Displays Linux kernel release, architecture, and build timestamps.

Sample Output:
Linux linux-box 6.8.0-generic #42-Ubuntu SMP x86_64 GNU/Linux

Frequently Asked Questions

How do you check if your Linux system is 64-bit or 32-bit?

Run `uname -m`. If it prints `x86_64` or `aarch64`, it is 64-bit; if `i686` or `armv7l`, it is 32-bit.