July 25, 2023

Check the version a GNU/Linux distribution from the command line

To display the version of the currently installed GNU/Linux distribution, run:

$ lsb_release  -a

The shell should display something like:

Distributor ID: Trisquel
Description:    Trisquel GNU/Linux Nabia (10.0.1)
Release:    10.0.1
Codename:   nabia

The option -a i.e. --all tells lsb_release to display all information available: the distributor’s ID as well as a description, the release number and the code name of the currently installed distribution.

Run $ man lsb_release to see all options.


personal computing command-line interface (cli) gnu linux trisquel wiki shell literacy

No affiliate links, no analytics, no tracking, no cookies. This work © 2016-2024 by yctct is licensed under CC BY-ND 4.0 .   about me   contact me   all entries & tags   FAQ   GPG public key

GPG fingerprint: 2E0F FB60 7FEF 11D0 FB45 4DDC E979 E52A 7036 7A88