运维经–目录
lsb_release显示发行版本信息
1.选项
Options:
-h, --help show this help message and exit
-v, --version show LSB modules this system supports
-i, --id show distributor ID
-d, --description show description of this distribution
-r, --release show release number of this distribution
-c, --codename show code name of this distribution
-a, --all show all of the above information
-s, --short show requested information in short format
2.演示
(base) frank@deepin:~$ lsb_release -i
Distributor ID: Deepin
(base) frank@deepin:~$ lsb_release -d
Description: Deepin 15.11
(base) frank@deepin:~$ lsb_release -r
Release: 15.11
(base) frank@deepin:~$ lsb_release -c
Codename: stable
(base) frank@deepin:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Deepin
Description: Deepin 15.11
Release: 15.11
Codename: stable
3.其他方法
(base) frank@deepin:~$ cat /etc/lsb-release
DISTRIB_ID=Deepin
DISTRIB_RELEASE="15.11"
DISTRIB_DESCRIPTION="Deepin 15.11 "
DISTRIB_CODENAME=stable
(base) frank@deepin:~$ cat /etc/debian_version
9.0