how to check current os version in linux code example Example: how to check linux os cat /etc/os-release or hostnamectl