/etc/issue works in some (cant guarantee all)<br><br><br><br><div class="gmail_quote">On Tue, Feb 3, 2009 at 11:00 AM, Hearn, Stan J. <span dir="ltr"><<a href="mailto:stan.hearn@nscorp.com">stan.hearn@nscorp.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I need to determine the version of Linux in a script.<br>
<br>
I would prefer to use the uname command.  I use that currently for Solaris.  But that really only gives me the kernel version in Linux.  Right?<br>
<br>
With Redhat I could use the /etc/redhat-release, but would that work for other flavors like Fedora, CentOS, etc...?  Is there a standard for Linux based distros to use /etc/*-release to identify itself?<br>
<br>
Thanks,<br>
Stan<br>
<font color="#888888"><br>
--<br>
redhat-sysadmin-list mailing list<br>
<a href="mailto:redhat-sysadmin-list@redhat.com">redhat-sysadmin-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list" target="_blank">https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list</a><br>
<br>
</font></blockquote></div><br>