Lsb-release
De Linuxmemo.
(Différences entre les versions)
Ligne 1 : | Ligne 1 : | ||
[[Catégorie:Commandes]] | [[Catégorie:Commandes]] | ||
+ | apt-get install lsb | ||
+ | apt-get install lsb-release | ||
+ | |||
Connaître le nom de code de sa distribution GNU/Linux (print distribution-specific information). Paquet : lsb-release (Linux Standard Base). | Connaître le nom de code de sa distribution GNU/Linux (print distribution-specific information). Paquet : lsb-release (Linux Standard Base). | ||
lsb_release -cs | lsb_release -cs | ||
Ligne 10 : | Ligne 13 : | ||
Release: 16.04 | Release: 16.04 | ||
Codename: xenial | Codename: xenial | ||
+ | |||
+ | cat /etc/lsb-release | ||
+ | DISTRIB_ID=Ubuntu | ||
+ | DISTRIB_RELEASE=16.04 | ||
+ | DISTRIB_CODENAME=xenial | ||
+ | DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS" |
Version actuelle en date du 27 mars 2017 à 14:52
apt-get install lsb apt-get install lsb-release
Connaître le nom de code de sa distribution GNU/Linux (print distribution-specific information). Paquet : lsb-release (Linux Standard Base).
lsb_release -cs xenial
ou -a pour "all"
lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS Release: 16.04 Codename: xenial
cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"