Determining Linux Release

Michael Bell mbell at inbox.com
Tue Feb 3 21:26:24 UTC 2009


/etc/issue works in some (cant guarantee all)



On Tue, Feb 3, 2009 at 11:00 AM, Hearn, Stan J. <stan.hearn at nscorp.com>wrote:

> I need to determine the version of Linux in a script.
>
> 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?
>
> 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?
>
> Thanks,
> Stan
>
> --
> redhat-sysadmin-list mailing list
> redhat-sysadmin-list at redhat.com
> https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/redhat-sysadmin-list/attachments/20090203/d6c4eeba/attachment.htm>


More information about the redhat-sysadmin-list mailing list