Re: Check the linux type?



On Fri, 30 Mar 2007 20:13:34 -0500, James wrote:

SamG wrote:
Hi,

How do i check what linux type am i using from a script. Like ubuntu or
suse or fedora.


Does "uname -a" not return acceptable information for what your purpose
is? I see a lot of follow ups to this post about release files in /etc
and version files in /proc, and how they differ between distros. I only
run Fedora...Fedora5 and Fedora6 so I can't speak for other distros, but
when I run this command on my machines they return strings: Linux Gaea
2.6.18-1.2239.fc5 #1 Fri Nov 10 13:04:06 EST 2006 i686 i686 i386
GNU/Linux

and

Linux Oceanus 2.6.20-1.2925.fc6 #1 SMP Sat Mar 10 19:15:16 EST 2007 i686
i686 i386 GNU/Linux

The OP is looking for information on the distribution of Linux. Uname only
gives information about the kernel.

Because of Fedora's kernel naming convention (ending the kernel name
with .fc(version)) it's possible to tell which version of Fedora you're
running if you're running a default kernel.

Other distributions don't, necessarily, include any information about the
distribution in their naming structure.
.



Relevant Pages

  • Re: [Fw: Cambridge (F-10) Beta release announcement]
    ... driver comes with the ASUS P5Q-SE/R board, for their "Express" Linux, and appears to be GPL. ... The reviews on the Newegg site say that OpenSuSE-11 supports the NIC out of the box, so if the license is okay perhaps Fedora users won't have to hand build a kernel. ...
    (Fedora)
  • Re: Kernel Question for Anti-Virus
    ... Is there a redhat kernel that would be compatible? ... has anyone tried TrendMicro's ServerProtect anti-virus? ... > a commercial anti-virus for Fedora? ... I do not know TrendMicro's product and how deep it switches into a Linux ...
    (Fedora)
  • Re: Giving up on Linux...
    ... You do know that Fedora is meant more as a development playground? ... I also read that SGI has Linux up to 64-way. ... and as a kernel hacker I assume you know that you can install newer ... Jim Drabb ...
    (Fedora)
  • Re: nvidia
    ... doesn't change driver interfaces often. ... You pay nothing for Fedora. ... Fedora doesn't provide this, for any package, including the kernel. ... not mean at all that I shouldn't run Linux, or even Fedora, for that matter. ...
    (Fedora)
  • Re: Latest kernel update for F11?
    ... kernel version/build available for a given Fedora version, I mean, without ... getting into the repos?. ... if I want to create a shell script to check the latest kernel on the ... If you are using kernel-PAE and comparing to `uname -r` you'll need to ...
    (Fedora)