cat /etc/os-release
SafeIdentify the distro
cat /etc/os-release
The reliable way to identify distro and version — decides apt-vs-dnf paths and support status.
Examples
cat /etc/os-release | grep PRETTYOne-line OS name
Syntax
cat /etc/os-release / lsb_release -a
Before you run it
Read only.
Related commands
- unameKernel/OS info
- hostnamectlShow/set hostname
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store