Linux Terminal Command: uname

The uname command is an essential tool in System Information & Hardware. In this tutorial, we will explore what uname does, look at everyday examples, and cover advanced options to supercharge your command-line workflow.


Concept & Explanation

The uname command prints system architecture and OS details, including kernel versions and machine types.


Common Options & Syntax

uname [options] [arguments]

Here are the most common flags used with uname:


1. Interactive Example (Simple)

Here is how most people run the command:

# Example
uname -a

What it does: Prints all available system information (OS name, kernel version, release date, hardware architecture).


2. Power-User Example (Advanced)

For scripting and advanced diagnostics, use this configuration:

# Advanced
uname -r -m

What it does: Prints only the active kernel release version (-r) and the hardware architecture (-m).


⚙️ Warning & Common Pitfalls

[!WARNING] This command prints static OS data. For CPU configurations, use lscpu or inspect /proc/cpuinfo.


Here are some related posts on cli_tty1 you might want to check out: