Linux Common Command nc
The most common use of the nc command is:
1. Test the TCP port
Nc-vz ip tcp-port
2. Test UDP
Nc-uvz ip udp-port
3. Temporarily monitor the TCP port
Nc-l port
4. Permanently monitor the TCP port
Nc-lk port
5. Temporarily monitor UDP
Nc-lu port
6. Permanently monitor UDP
Nc-luk port