how to display the hostname in linux code example Example: how to get hostname on linux $ hostnamectl