The program to view and change a machine’s hostname in Linux is a program named hostname itself. In a machine’s with the hostname test, running the program will produce the following:
Save my name, email, and website in this browser for the next time I comment.
Notify me of follow-up comments by email.
Notify me of new posts by email.