lsb_release
Overview
The lsb_release command displays Linux Standard Base (LSB) and distribution-specific information. It provides information about the Linux distribution.
Syntax
lsb_release [options]Common Options
| Option | Description |
|---|---|
-a |
All information |
-i |
Distributor ID |
-d |
Description |
-r |
Release number |
-c |
Codename |
-s |
Short output |
-h |
Show help |
-v |
Show version |
--all |
All information |
--short |
Short format |
Output Fields
| Field | Description |
|---|---|
| Distributor | Linux distribution |
| Description | OS description |
| Release | Version number |
| Codename | Release codename |
| LSB Version | LSB version |
| Module Info | LSB modules |
Key Use Cases
- Distribution identification
- Version checking
- System information
- Compatibility checks
- Documentation
Examples with Explanations
Example 1: All Info
lsb_release -aShow all information
Example 2: Distribution
lsb_release -iShow distributor ID
Example 3: Version
lsb_release -rShow release number
Common Usage Patterns
Full details:
lsb_release -aShort format:
lsb_release -dsRelease info:
lsb_release -ir
System Information
- Distribution name
- Version number
- Release codename
- LSB compliance
- System details
Additional Resources
Best Practices
- Version checking
- Documentation
- Compatibility
- System tracking
- Release verification
Distribution Analysis
- Version details
- Release info
- System type
- LSB compliance
- Distribution features
Troubleshooting
- Version issues
- Compatibility
- System detection
- Release problems
- LSB compliance
Common Uses
- System scripts
- Documentation
- Version control
- Compatibility
- System management