To check the hostname in Solaris, use the `hostname` command. This command displays the system’s hostname, which is the name assigned to the system when it was configured. The hostname is used to identify the system on a network and is also used by various system services, such as the mail server and the web server.
The hostname is typically set during the system installation process, but it can be changed at any time using the `hostname` command. To change the hostname, simply type the following command at the command prompt: