编程笔记

lifelong learning & practice makes perfect

lsb_release

description & usage

  1. LSB (Linux Standard Base)
  2. tldr description
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    lsb_release

    Provides certain LSB (Linux Standard Base) and distribution-specific information.

    - 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

    example

    1
    2
    3
    4
    5
    LSB Version:    :core-4.1-amd64:core-4.1-noarch
    Distributor ID: CentOS
    Description: CentOS Linux release 8.2.2004 (Core)
    Release: 8.2.2004
    Codename: Core

欢迎关注我的其它发布渠道