lsb_release

Provides certain LSB (Linux Standard Base) and distribution-specific information. More information: <https://manned.org/lsb_release>.

Install

All systems
curl cmd.cat/lsb_release.sh
Debian Debian
apt-get install lsb-release
Ubuntu
apt-get install lsb-release
Arch Arch Linux
pacman -S lsb-release
image/svg+xml Kali Linux
apt-get install lsb-release
CentOS
yum install redhat-lsb-core
Fedora
dnf install redhat-lsb-core
Windows (WSL2)
sudo apt-get update sudo apt-get install lsb-release
Raspbian
apt-get install lsb-release

Provides certain LSB (Linux Standard Base) and distribution-specific information. More information: <https://manned.org/lsb_release>.

  • Print all available information:
    lsb_release -a
  • Print a description (usually the full name) of the operating system:
    lsb_release -d
  • Print only the operating system name (ID), suppressing the field name:
    lsb_release -i -s
  • Print the release number and codename of the distribution, suppressing the field names:
    lsb_release -rcs

© tl;dr; authors and contributors