tldr linux command to check if port is open on host
- User
tldr linux command to check if port is open on host
Assistant
nc -zvw10
ncis the netcat command-ztells nc to only scan for listening daemons, without sending any data to them-venables verbose mode-w10sets the timeout to 10 seconds<host>is the hostname or IP address to check<port>is the port number to check
Example: nc -zvw10 example.com 80
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.