How to detect OS system using BASH? – CentOS
The script should be able to detect the operating system that is running. The alternatives OS is Arch Linux, Centos and Ubuntu. os=$(uname) if [ "$os" == "Arch" ]; then echo "Arch Linux detected" elif [ "$os" == "CentOS" ];…