How to check if a remote port is open ,using CLI in Linux

$ nc -zv <hostname> <port>

By using this command, you don’t have to install nmap.