[Ilugc] knowing the system name i am using???

  • From: gopubhaskar@xxxxxxxx (Gopu Bhaskar)
  • Date: Mon Mar 21 19:40:38 2005


Hi,

how to know, which linux system i am using??

Got this in the following link...
http://www.mail-archive.com/linux-misc@xxxxxxxxxxxxxxxxxxxxxxxxx/msg03885.html

echo 
echo ++++ LIST SYSTEM/VENDOR VERSION INFO:  ++++    
uname -a
if [ -f /etc/redhat-release ]
then
        echo RedHat Linux system release file - /etc/redhat-release
        cat /etc/redhat-release
        echo RedHat Linux release - rpm -q -a \| grep redhat
        rpm -q -a | grep redhat
fi
if [ -d /var/lib/LST ]
then
        echo Caldera OpenLinux release - rpm -q -a \| grep Open\|COL
        rpm -q -a | egrep Open\|COL
        echo Caldera Base Version - /var/lib/LST/BASEVERSION:
        cat /var/lib/LST/BASEVERSION
        echo Caldera Main Version - /etc/.issue:
        cat /etc/.issue
fi
if [ -f /sbin/SuSEconfig ]
then
        echo This is a SuSE Linux system - /sbin/SuSEconfig exists
        echo SuSE Release Version: /var/adm/inst-log/info
        cat /var/adm/inst-log/info      
fi
if [ -d /usr/lib/setup ]
then
        echo This is a Slackware Linux system - /usr/lib/setup exists
        echo The Slackware Version - /usr/lib/setup\|grep version
        ls /usr/lib/setup | grep version
fi
if [ -d /var/lib/corel_setup ]
then
        echo This is a Corel Linux system - /var/lib/corel_setup exists
        echo Debian Linux system release file - /etc/debian_version
        cat /etc/debian_version
        echo The Corel Linux Version - /etc/issue
        cat /etc/issue
else
        if [ -f /etc/debian_version ]
        then
                echo This is a Debian Linux system
                echo Debian Linux system release file - /etc/debian_version
                cat /etc/debian_version
        fi
fi

HTH,
Gopu.
either its debian or redhat or mandrake etc ???

--
bala> balachandar muruganantham
bala> lynx http://chandar.blogspot.com
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc



--
bala> balachandar muruganantham
bala> lynx http://chandar.blogspot.com
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm

Other related posts: