And just in case, for Debian and related distributions, the release information is stored into

And FWIW in CRUX I can use the crux command, which in turn is a script which just echoes the wanted info, hardcoded there. The lesson to be learnt here is that not only the question has nothing to do with Perl, but also that it is one that hardly has an answer, since it's up to each distro to provide that info, and each distro provides it, or possibly doesn't, in its own way, i.e. there appears not to be a standard.

However as fenLisesi++ points out, some more info seems to be available in /proc/version, specifically in the C compiler description: I've now checked 6 systems which comprise 4 different distros, namely CRUX, Mandriva, Debian and Gentoo; but I don't have the slightest idea how all this may be in general - and there are far many more distros out there...


In reply to Re^3: (OT) command for finding out which distribution of Linux is being used by blazar
in thread (OT) command for finding out which distribution of Linux is being used by heidi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.