in reply to (OT) command for finding out which distribution of Linux is being used

I don't know the answer to your question, but I can tell you why uname doesn't help.

RedHat is not an operating system. RedHat is a distribution (which includes Linux, an OS). $^O can be used to determine which OS is being used, but it won't tell you which distribution of Linux is being used.

Replies are listed 'Best First'.
Re^2: (OT) command for finding out which distribution of Linux is being used
by Anonymous Monk on Oct 16, 2006 at 08:07 UTC
    RedHat is not an operating system.

    Well, that depends on your definition of "operating system". What some call "operating system", others call "kernel". What others call "operating system", some call "distribution". And yet other people name the kernel + /usr "operating system".

      Yes, people often use terms in a misleading way, because they make up their own definition, or because they follow a convention or habit, which may be wrong. People often say America when they refer to the USA, which is plain wrong. America is a continent, not a nation, a country or a collection of states.

      For some reason there is the distinction between kernel, system software and applications to keep things apart.

      The kernel alone makes no operating system. An operating system is the functional unit comprised by the kernel and the system software. Period. In that sense referring to Linux as an operating system is wrong: an operating system with the Linux kernel is called more accurately Linux/GNU (or GNU/Linux, there's also GNU/Hurd), since the kernel is called Linux, and the system software is GNU.

      OTOH it can be debated whether the different Linux distributions (Debian, Mandrake, Gentoo, RedHat, SuSE to name a few) differ so much in their system software that their respective undelying OS may be called an own distinct operating system. Since they ship oodles of applications, some of which are tightly integrated into the system software via dependencies, they are distributions.

      IMHO the *BSD variants show that distinction best: there's the kernel and the system software in a minimal install. All else lives in the ports tree.

      --shmem

      _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                    /\_¯/(q    /
      ----------------------------  \__(m.====·.(_("always off the crowd"))."·
      ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

        Common usage, Wikipedia and Merriam-Webster all agree that one can refer to the country as America. The displeasure this causes you does not make it "plain wrong".

        The kernel alone makes no operating system

        Careful now. The machine on which I work (a real-time control system) has nothing that could be considered "system software". The kernel alone is the OS.

        "America is a continent, not a nation, a country or a collection of states."

        Really? I thought that North America and South America were continents. America is the name of a few bands, some albums, the title of no less than eight songs, a film, a fews books and novels, a poem, a soap opera, a TV station, a magazine, a video game, a story, a racing yacht, an airplane, three US Navy ships, and a passenger liner. -- source: America

        If you are going to be picky about misusing a name, at least get your details right. =D

      Well, that depends on your definition of "operating system".

      The expression may have more than one meaning, but not as far as Perl and (apparently) uname are concerned. I was speaking in context.