The telnet command is used to communicate with another host using the TELNET protocol.This command requires two arguments one is host name and another one is port.
Running telnet command ensures that we have access to another host as well as services running in specific port.
General format of telnet as like below
telnet [host] [port]
After running this command if we get the output as "connected to" followed by host name which means we have an access to the service in the another system.