Ubuntu lsb_release hostnamectl Redhat or Centos hostnamectl cat /etc/issue # Centos cat /etc/centos-release # Redhat cat /etc/redhat-release ``