🐧 Command: uname -a (System Information)
The uname (Unix Name) command is the fastest way to get basic information about the operating system, the kernel version, and the hardware architecture you are running on.
1. The "Why"
On Arch Linux, knowing your exact kernel version is essential because Arch is a "rolling release" system.
- Driver Troubleshooting: If your GPU drivers stop working after an update, you'll need to check if your kernel version matches the driver version.
- Hardware Compatibility: When installing specialized software for your research or setting up Hyprland, you may need to verify if you are on a 64-bit architecture (
x86_64). - Kernel Identification: Arch users often switch between the standard
linuxkernel,linux-lts(Long Term Support), orlinux-zen.unametells you exactly which one is currently "live."
2. Breaking Down the -a Flag
The -a flag stands for All. It combines several individual flags into one detailed string of information.
Example Output:
Linux arch-ahmed 6.8.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 26 Mar 2026 10:00:00 +0000 x86_64 GNU/Linux
3. What the Parts Mean
Using the example above:
| Part | Name | Explanation |
|---|---|---|
| Linux | Kernel Name | The core operating system type. |
| arch-ahmed | Hostname | The name you gave your PC during the Arch installation. |
| 6.8.2-arch1-1 | Kernel Release | The specific version of the Linux kernel you are running. |
| #1 SMP... | Kernel Version | The build date and compilation details. |
| x86_64 | Architecture | Confirms you are on a 64-bit system. |
| GNU/Linux | OS | The overall operating system category. |
4. Practical Examples
A. Just the Kernel Version
If you only need to know the version number (useful for driver checks):
uname -r
B. Checking Architecture
To see if your system is 32-bit or 64-bit (helpful when downloading external binaries):
uname -m
C. Checking the OS
uname -o
5. Pro-Tips
- The "Arch" Specialty: Since you are on Arch, you might also be interested in the
neofetchorfastfetchcommands. They provide the same info asunamebut in a much more visual way, including the Arch logo and your PC specs . - Scripting: If you write a script that should only run on Linux, you can use
if [ $(uname) == "Linux" ]; then.... - After an Update: If you update your kernel via
pacman,uname -rwill still show the old version until you reboot your computer.
6. Summary Reference
| Goal | Flag |
|---|---|
| Everything | uname -a |
| Kernel Release | uname -r |
| Hardware Architecture | uname -m |
| Hostname | uname -n |