June 26, 2007

Programatically, is there a way to find out if OS is Redhat Linux or Suse Linux?

  1. Programatically in java.
  2. You said Programaticaly, but didn't suggest a programming language.

    The POSIX standard defines a method for identifying systems, but unfortunately on linux systems it only seems to give you the kernel information. (Look at /usr/include/sys/utsname.h)

    From a purely practical stand point, all redhat or fedora based systems will have a file called /etc/redhat-release.

Tags: ,

Tell a Friend Today!

del.icio.us Digg Furl Reddit Ask BlinkList blogmarks Blogg-Buzz Google Ma.gnolia Netscape ppnow Rojo Shadows Simpy Socializer Spurl StumbleUpon Tailrank Technorati Windows Live Wists Yahoo! Help

Permalink • Print

Track this entry

RSS BlogPulse

RSS Technorati Cosmos

Related Searches

, , , ,