Which language do you prefer? English 简体中文 繁体中文
...

Part of Linux Commands Cheat Sheet

The lsb_release command displays LSB (Linux Standard Base) information about your specific Linux distribution.

Display all information:


lsb_release -a

Output example:


Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:    18.04
Codename:   bionic

Display the codename of the current operating system:


lsb_release -c

Output (ubuntu 18.04):


Codename:   bionic

Show shoter result:


lsb_release -cs

Output (ubuntu 18.04):


bionic

Other options:


lsb_release -i # ID of Linux distributor
lsb_release -d # description of Linux distribution
lsb_release -r # release number of the current operating system
lsb_release -c # codename of the current operating system

Linux lsb_release command

wbswjc-blog