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. mac 28 terminal 15 hostname 1 Please enable JavaScript to view the comments powered by Disqus.