Re: Check the linux type?



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)

.



Relevant Pages

  • RedHat, Fedora future?
    ... Here is an article about the future of Red Hat and with that Fedora. ... Red Hat or SUSE for the enterprise? ... laid down by the Filesystem Hierarchy Standard ...
    (Fedora)
  • 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)
  • Re: Desktop Wallpaper & Group Policy
    ... You could use a script at logon to check for several wallpaper's in the ... You would also need to make sure that the four standard ... strWallpaper = objShell.RegRead ... The script reads the regisrty and checks the keys and uses the sub to reset ...
    (microsoft.public.windows.group_policy)
  • Re: [PATCH] x86: update vmlinux.lds.S to place .data section on a page boundary
    ... and this prevents kexec from loading a new kernel. ... NAK ... its the standard of the script. ...
    (Linux-Kernel)
  • Re: document.write and problems with how it overwrites existing code
    ... > Your definition of 'modify' seems to exclude completely replace. ... > me in both those browsers. ... Javascript/JScript/ECMAscript war of script specifications. ... when they won't operate with the common (dare we say standard?) code. ...
    (comp.lang.javascript)