lsb_release v2.0 prints certain LSB (Linux Standard Base) and Distribution information.
Syntax
Another way to get linux version is to print /etc/os-release file.
Options
| Option |
Description |
| -h |
show this help message and exit |
| -v |
show LSB modules this system supports |
| -i |
show distributor ID |
| -d |
show description of this distribution |
| -r |
show release number of this distribution |
| -c |
show code name of this distribution |
| -a |
show all of the above information |
| -s |
show requested information in short format |
Examples
Show all lsb release info
Sample output
1 2 3 4 5
| No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic
|
Show distributor ID
Sample output
Reference