I'm making a script that installs some basic needs of mine on my newly installed Linux.However depending on the Linux distro the contents and commands would be different.In Arch Linux I would use pacman -S ..., in Ubuntu I would use apt-get ....So my question is how I can differentiate all of these different distros? Of course it would go along with differentiating the kernel as well (if possible).Thanks for your help!
Figure out which distro I'm using with Zsh script
shell script;kernel;distros