Re: Check the linux type?



On Thu, 29 Mar 2007 16:48:49 +0100, BearItAll wrote:

SamG wrote:

Hi,

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

Sam

I always believed /proc/version was standard, I just checked the two distros
I have near me, but worth checking that it is really standard for your
script.

#!/bin/bash
y=`cat /proc/version`
echo $y

#note: back slashes around the command (next to the number 1 key on UK
keyboard)

That does have a lot of information about the kernel but, for example, on
my Ubuntu install it does not mention the Ubuntu version number.

.



Relevant Pages

  • Re: Check the linux type?
    ... How do i check what linux type am i using from a script. ... or suse or fedora. ... I always believed /proc/version was standard, I just checked the two distros ...
    (alt.os.linux)
  • Re: initdefault has no effect
    ... Maybe Fedora needs to consider the ... fedora use /etc/event.d/ instead of inittab or just ubuntu? ... Upstart script that reads the inittab does not distinguish between lines ...
    (Fedora)
  • Re: Check the linux type?
    ... How do i check what linux type am i using from a script. ... Like ubuntu ... or suse or fedora. ...
    (alt.os.linux)
  • Check the linux type?
    ... How do i check what linux type am i using from a script. ... Like ubuntu ... or suse or fedora. ...
    (alt.os.linux)
  • Re: How to capture WMP events with script (and not HTML)?
    ... > must use SCRIPT FOR..EVENT tags. ... The generic and standard way to sink events from an object ... pages, like MSHTML and XMLHTTP, add another custom mechanism ... ActiveX controls because those controls only know about the ...
    (microsoft.public.windowsmedia.sdk)