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=VALUEParameters & Attributes
| Name | Type | Description |
|---|---|---|
| ID | string | Machine-readable OS identifier. |
| VERSION_ID | string | Machine-readable release identifier, if provided. |
| PRETTY_NAME | string | Human-readable OS label. |
Working Example
Example Snippetlinux
cat /etc/os-release