lsb_release(1) - man - phpman

Look up a command

 

Markdown Format | JSON API | MCP Server Tool | Cheat Sheet


TLDR: lsb_release (tldr-pages)

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

  • Print all available information
    lsb_release {{-a|--all}}
  • Print a description (usually the full name) of the operating system
    lsb_release {{-d|--description}}
  • Print only the operating system name (ID), in short format (omitting the field name)
    lsb_release {{-is|--id --short}}
  • Print the release number and codename of the distribution, in short format
    lsb_release {{-rcs|--release --codename --short}}
lsb_release(1)                         General Commands Manual                        lsb_release(1)



NAME
       lsb_release - print distribution-specific information

SYNOPSIS
       lsb_release [options]

DESCRIPTION
       The  lsb_release command provides certain LSB (Linux Standard Base) and distribution-specific
       information.

       If no options are given, the -v option is assumed.

OPTIONS
       The program follows the usual GNU command line syntax, with long options  starting  with  two
       dashes (`--').  A summary of options are included below.

       -v, --version
              Show the version of the LSB against which your current installation is compliant.  The
              version is expressed as a colon separated list of LSB module descriptions.

       -i, --id
              Display the distributor's ID.

       -d, --description
              Display a description of the currently installed distribution.

       -r, --release
              Display the release number of the currently installed distribution.

       -c, --codename
              Display the code name of the currently installed distribution.

       -a, --all
              Display all of the above information.

       -s, --short
              Use the short output format for any information  displayed.   This  format  omits  the
              leading header(s).

       -h, --help
              Show summary of options.

NOTES
       This  is  a reimplementation of the lsb_release command provided by the Free Standards Group.
       Any bugs are solely the responsibility of the author below.

       Detection of systems using a mix of packages from various distributions or releases is  some‐
       thing  of  a black art; the current heuristic tends to assume that the installation is of the
       earliest distribution which is still being used by apt but that heuristic is subject  to  er‐
       ror.

SEE ALSO
       lsb(8)

AUTHOR
       Chris Lawrence <lawrencc AT debian.org>.



                                                                                      lsb_release(1)

Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 18:28 @216.73.216.151 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!