HF RL Explorer

Task: Find Free TCP Ports on a Linux System

Task: Find Free TCP Ports on a Linux System: a task in Terminal-Lego-15k (Harbor dataset). Your task is to write a shell script that finds free (unused) TCP ports on the local system. The script should identify TCP ports that are NOT currently in use (not in LISTENING, ESTABLISHED, or any other…

The task

Your task is to write a shell script that finds free (unused) TCP ports on the local system. The script should identify TCP ports that are NOT currently in use (not in LISTENING, ESTABLISHED, or any other active state).

Part of PrimeIntellect/Terminal-Lego-15k.