Category: MAC OS


A telnet to a server

telnet <ip-address> <port-number> telnet <name-of-the-server> <port-number> Most of the time people check connectivity via ping <ip-address> But ping command listens on other ports than you expect. Hence, you might get response back from server...


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.