On Sat, Feb 16, 2019 at 01:02:43PM -0800, Mike Wright wrote:
> Look in /etc/.  Could be redhat-release.  Some distros use os-release.

Any distro using systemd (so, any modern mainstream distro) will have
/etc/os-release. You can do `cat /etc/os-release`, but one of the really
nice things is that this is also a machine-readable file. You can do 

  $ source /etc/os-release 
  $ echo $PRETTY_NAME 
  Fedora 29 (Workstation Edition)



-- 
Matthew Miller
<mat...@fedoraproject.org>
Fedora Project Leader
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to