Difference between revisions of "Lsb release"
Jump to navigation
Jump to search
(4 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
[[lsb_release --help]] | [[lsb_release --help]] | ||
+ | |||
+ | lsb_release -a | ||
+ | No LSB modules are available. | ||
+ | Distributor ID: Ubuntu | ||
+ | Description: Ubuntu 22.04.2 LTS | ||
+ | Release: 22.04 | ||
+ | Codename: [[jammy]] | ||
+ | |||
lsb_release -a | lsb_release -a | ||
Line 12: | Line 20: | ||
Description: [[Ubuntu 20.04]].2 LTS | Description: [[Ubuntu 20.04]].2 LTS | ||
Release: 20.04 | Release: 20.04 | ||
− | Codename: focal | + | Codename: [[focal]] |
[[lsb_release -cs]] | [[lsb_release -cs]] | ||
+ | [[focal]] | ||
== Related commands == | == Related commands == | ||
Line 20: | Line 29: | ||
* <code>[[/etc/issue.net]]</code> | * <code>[[/etc/issue.net]]</code> | ||
* <code>cat [[/etc/*release]]</code> | * <code>cat [[/etc/*release]]</code> | ||
+ | * <code>[[Amazon Linux]], [[Debian]]: [[/etc/os-release]]</code> | ||
* <code>[[/etc/redhat-release]]</code> | * <code>[[/etc/redhat-release]]</code> | ||
* <code>[[/etc/fedora-release]]</code> | * <code>[[/etc/fedora-release]]</code> | ||
− | * <code> | + | * <code>[[/etc/debian_version]]</code> |
* <code>[[yum install redhat-lsb-core]]</code> | * <code>[[yum install redhat-lsb-core]]</code> | ||
* <code>[[hostnamectl]] | grep [[Operating System]]</code> | * <code>[[hostnamectl]] | grep [[Operating System]]</code> |
Latest revision as of 12:49, 6 February 2024
lsb_release
binary included in the lsb-release
package.
lsb_release No LSB modules are available.
lsb_release --help
lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.2 LTS Release: 22.04 Codename: jammy
lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.2 LTS Release: 20.04 Codename: focal
lsb_release -cs focal
Related commands[edit]
uname -a
/etc/issue.net
cat /etc/*release
Amazon Linux, Debian: /etc/os-release
/etc/redhat-release
/etc/fedora-release
/etc/debian_version
yum install redhat-lsb-core
hostnamectl | grep Operating System
See also[edit]
lsb_release
,lsb_release --help
,lsb_release -cs, /etc/*release, /etc/issue, hostnamectl, uname
uname, uname -m
,lsb_release, hostnamectl
,sw_vers (macOS)
,winver
,ver, busybox
APT
:wajig
,apt-cache
,add-apt-repository
PPA,apt
[install
|remove
|purge | show | list | changelog
|update
|upgrade
],do-release-upgrade
,apt-mark
,apt full-upgrade
,sources.list
, APT Automatic updates,unattended-upgrade
,apt-transport-https
,apt-get update
,/etc/apt/
,/etc/apt/apt.conf.d/50unattended-upgrades
,/etc/apt/apt.conf.d/
,/etc/apt/apt.conf.d/20auto-upgrades
,apt-file, apt-utils
Advertising: