uname command
Show the kernel version and system architecture.
- System information
- Package coreutils
- 5 options · 5 examples
Syntax
uname [options]Provided by the coreutils package. Run man uname for the full manual.
Common options
| Option | What it does |
|---|---|
-a | Everything |
-r | Kernel release |
-m | Machine architecture |
-n | Host name |
-s | Kernel name |
Examples
All system information
uname -aKernel version
uname -rArchitecture (x86_64, aarch64)
uname -mDistribution name and version
cat /etc/os-releaseShort distribution version
lsb_release -a
No example matches. Check the options table or search the guides.
uname guides
- How To Check OS Version with Linux Command Line Linux Commands · Updated Apr 2025
- Is Your Linux System 64-bit or 32-bit? 5 Ways to Find Out Linux Commands · Updated Apr 2025
- (Resolved) node-saas: Linux 64-bit with Unsupported runtime (108) Linux · Updated Apr 2025
