configuration

/etc/os-release — distribution identity

Read-only identification data supplied by the operating system vendor. Read /etc/os-release if it exists; otherwise fall back to /usr/lib/os-release. Do not merge the two files. The assignment format does not support variable expansion or arbitrary shell code; parse untrusted files as data rather than sourcing them. ID identifies the OS, VERSION_ID identifies its release when defined, and PRETTY_NAME is a display label. Do not change the file to change the installed release. No reload or restart is needed to read it. Fields may be absent.

Formal Syntax & Structure

linux syntaxlinux
KEY=VALUE

Parameters & Attributes

NameTypeDescription
IDstringMachine-readable OS identifier.
VERSION_IDstringMachine-readable release identifier, if provided.
PRETTY_NAMEstringHuman-readable OS label.

Working Example

Example Snippetlinux
cat /etc/os-release
Linux Reference