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.

Sam



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



James http://cronus.ath.cx

Here's one example.

uname -a
Linux localhost 2.6.19-gentoo-r5 #2 Wed Mar 28 20:03:32 MDT 2007 i686 VIA Nehemiah CentaurHauls GNU/Linux

.



Relevant Pages

  • Re: Check the linux type?
    ... 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. ... i686 i386 GNU/Linux ...
    (alt.os.linux)
  • Re: FC3 - Im anything but dissapointed
    ... I am liking Fedora 3. ... told I had to use a Windows laptop and could not put linux on it. ... install Linux than Windows but who cares. ... distros are the system tools. ...
    (Fedora)
  • Re: Developing under Ubuntu
    ... Fedora is sponsored by RedHat, and many of RedHat's developers work on Fedora. ... Because Sun release Java under a license which is too restrictive for the ... support agreement from RedHat. ... There are a couple of free distros. ...
    (comp.lang.java.programmer)
  • Re: Linux distro advise?
    ... Fedora 7 is a very fine distro. ... The main difference between distros seems to be the management ... Some years ago red hat modified both Gnome and KDE desktops to look ... And enlightenment is very pretty. ...
    (uk.rec.sheds)
  • Re: Bankers
    ... distros to consider. ... There are one or two major ones (eg, Debian, ... Fedora might be missing some potential users if they have no easy way to evaluate it. ... Ubuntu didn't easily install in a Virtual Machine if it hadn't been for the Live CD I probably would still be running Windows or on another distro. ...
    (uk.rec.humour)