Skip to main content
Kill -9 Club
Sign in

nc

NetworkPackage: netcat-openbsd

Opens a raw TCP or UDP connection to a port, or listens on one. nc -zv host 5432 says whether the port is open before the database gets blamed.

What its options do in the lessons

From the same glossary the lessons render under their commands, so the two cannot disagree.

nc -v
Announces the verdict of each connection attempt — success or failure — instead of staying silent.
nc -z
Connects without sending a byte, then closes: the test stops at “does the connection open?”.
nc -w
Maximum time, in seconds, before giving up on a connection that does not complete. Without it you wait on the kernel — several minutes.

Lessons that teach it