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. © 2016-2023 yctct.com. Content is licensed under CC BY-NC-SA 4.0 .