1

Bash - How to get Linux distro Name?

view story
linux-howto

http://unix.stackexchange.com – i try to make a script to Get Linux Distro Name . but im some confused by now , well the methods to gets distro name are diffentts Possible commands : 1 - $ cat /etc/lsb-release 2 - $ cat /etc/issue 3 - $ dmesg | head -1 4 - $ cat /proc/version 5 - $ cat /etc/slackware-version 6 - $ cat/etc/debian-verion 7 - etc ... etc ... etc ... etc ... etc ... etc ... etc ....... Remember im from "Venezuela" i speak "Spanish" and I think to write something like this : function Nombre_SO() { DistroName="Linux" if [ $DistroName = Linux ] ; then # Debian debian=`cat /etc/debian_ver (HowTos)