Find hostname in mac

Run the fol­low­ing com­mand in your terminal.

echo $HOSTNAME

It is the sim­plest way to find the host­name in MAC from your terminal.

You may also like...