[PLUG] Checking Linux Flavor

Terry Griffin griffint at pobox.com
Mon Jul 11 22:29:00 UTC 2005


If the distro is LSB compatible *and* if the LSB utilities are installed
you can do this:

    lsb_release -d

See man page lsb_release(1) for other options.

Terry

On Mon, Jul 11, 2005 at 03:03:42PM -0700, 
dan at fiddlers-green.info wrote:
> All,
> 
> Do you guys know of a standard way of checking which flavor of linux your
> running?  I know redhat and Suse use a Redhat-release and Suse-release file in
> etc, but what about other flavors? What do you usually do to determine the
> linux flavor that a script is running on?
> 
> thanks,
> Dan H.
> 
> 
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> 
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug

-- 
Terry Griffin <griffint at pobox.com>
http://www.blindchicken.com/~terryg/



More information about the PLUG mailing list