how to check hostname in linux command code example Example: how to get hostname on linux $ hostnamectl