uname
Overview
The uname
command prints system information. It displays information about the system and kernel.
Syntax
uname [options]
Common Options
Option | Description |
---|---|
-a |
All information |
-s |
Kernel name |
-n |
Network node name |
-r |
Kernel release |
-v |
Kernel version |
-m |
Machine hardware |
-p |
Processor type |
-i |
Hardware platform |
-o |
Operating system |
-U |
Kernel build date |
Output Fields
Field | Description |
---|---|
System | OS name |
Node | Network name |
Release | Kernel release |
Version | Kernel version |
Machine | Hardware name |
Processor | CPU type |
Platform | Hardware platform |
OS | Operating system |
Key Use Cases
- System identification
- Version checking
- Platform detection
- Kernel information
- Hardware details
Examples with Explanations
Example 1: All Info
uname -a
Show all information
Example 2: Kernel Version
uname -r
Show kernel release
Example 3: Machine Type
uname -m
Show hardware name
Common Usage Patterns
System check:
uname -s
Platform info:
uname -mp
OS details:
uname -o
System Information
- Kernel details
- Hardware info
- Platform data
- Version numbers
- System name
Additional Resources
Best Practices
- Version checking
- Platform verification
- System identification
- Documentation
- Compatibility checks
System Analysis
- Kernel version
- Hardware type
- Platform details
- OS information
- System name
Troubleshooting
- Version mismatch
- Platform issues
- Kernel problems
- System identification
- Hardware detection
Common Uses
- Scripts
- System checks
- Documentation
- Compatibility
- Verification