title: Best way to find os name and version in Unix/Linux platform
body: <p>I need to find the OS name and version on Unix/Linux platform. For this I tried following:</p>
  
  <ol>
  <li><p><code>lsb_release</code> utility</p></li>
  <li><p><code>/etc/redhat-release</code> or specific file</p></li>
  </ol>
  
  <p>But it does not seem to be best solution as LSB_RELEASE support is no longer for RHEL 7.</p>
  
  <p>Is there any way that will work on any Unix or Linux platform?</p>