LSB_RELEASE(1)

๐Ÿ’– LSB_RELEASE(1) ๐Ÿ’–

user commands, bestie โ€” and it's the cutest little one, fr fr ๐ŸŽ€


โœจ NAME โœจ

lsb_release โ€” print distribution-specific information (minimal implementation). yes it's minimal, no it's not lazy, it's called efficiency ๐Ÿ’…


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

lsb_release [options]

๐ŸŒธ DESCRIPTION ๐ŸŒธ

okay so. this is a bare-bones version of the lsb_release command, and when i say bare-bones i mean it's literally a tiny POSIX shell script. like, less than 100 lines of commented code. that's the whole thing. slay.

instead of doing the whole LSB packages thing, this version just reads its info from /etc/os-release and /usr/lib/os-release. and here's the iconic part โ€” even though it's doing something completely different under the hood, the output is byte-for-byte compatible with the Python-based version provided by Debian and its derivatives. no cap. ๐Ÿซถ

so what does that mean for you? it means you can keep a base OS image Python-free (gasp, i know, stunning) while still keeping compatibility with all those older scripts that expect lsb_release to just... exist. she's adaptable. she's lowkey a legend. ๐Ÿ‘‘


๐Ÿ’… OPTIONS ๐Ÿ’…

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

  • -h, --help โ€” show a help message with a list of options and exit. the "hi bestie here's what i do" moment ๐Ÿฅฐ
  • -v, --version โ€” show LSB modules this system supports.
  • -i, --id โ€” show distributor ID.
  • -d, --description โ€” show description of this distribution.
  • -r, --release โ€” show release number of this distribution.
  • -c, --codename โ€” show code name of this distribution.
  • -a, --all โ€” show all of the above information. the "just give me everything" option, respect it
  • -s, --short โ€” show requested information in short format. no yapping, just vibes โœจ

๐ŸŽ€ FILES ๐ŸŽ€

  • /usr/lib/os-release โ€” distribution-provided file with operating system identification data.
  • /etc/os-release โ€” machine-specific file with operating system identification data. if present, /etc/os-release is read instead of /usr/lib/os-release.
ok so important: it's not a merge situation, it's a pick one situation. /etc/os-release walks in and /usr/lib/os-release is out. ๐Ÿ™ˆ

๐ŸŒˆ SEE ALSO ๐ŸŒˆ


๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Gioele Barabucci <https://gioele.io>


๐Ÿ’œ LICENSE ๐Ÿ’œ

this implementation of lsb_release is free software released under the terms of the ISC license. free software!! we love to see it!!


and that's the whole page bestie ๐Ÿ’– this was lsb_release version 12.1, dated 2025-12-18, and you found her under LSB_RELEASE(1) โ€” go forth and query your distro, you've got this ๐Ÿฆ‹โœจ

๐Ÿ“ฆ where this page comes from