Finding about which OS is running via shell script

Kevin Wilson wkevils at gmail.com
Fri Apr 26 19:46:26 UTC 2013


Hello,
My aim is to right a script that will behave differently
when running it on Fedora or running it on Ubuntu.
Is there a way to know from Bash whether the OS is ubuntu or
Fedora (besides parsing /etc/issue ) ?

rgs,
Kevin




More information about the ubuntu-users mailing list