/etc/os-release

A small text file of name=value lines that tells programs and people which distribution and version a Linux machine runs.

In more detail

Reading it with cat /etc/os-release shows fields such as the name, the version number and the family a distribution is like. Scripts and runbooks use it to choose the right package commands. Check it before following instructions written for another distribution.

Example

The course prints NAME=Example VERSION=1 CHANNEL=stable to model the fields a release description needs.

Related terms

Taught in

References

Certification courses