System and processes

The lsb_release command

Shows the Linux distribution and its version. With -a, all the data.

Syntax

lsb_release -aTry it in the terminal →

Copy-ready examples

$ lsb_release -aShow the distribution

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • On minimal systems it may not be installed; check /etc/os-release.

Related commands

FAQ

What does lsb_release show?

The distribution info: name, version and codename.

Is there a shortcut?

Yes: lsb_release -a.

More System and processes commands

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course