The “hostname” command

Use this command to display the IP address of the remote machine.

Command format

hostname

Example usage

Command description Command and output
Display the IP of the remote machine

This example sends the hostname command to display the remote IP.

[writingteam /]$ hostname 
72.246.17.108

Available options

There are no options available with this command.