• 0

Find hostname in mac

Run the following command in your terminal.

echo $HOSTNAME
It is the simplest way to find the hostname in MAC from your terminal.