HF RL Explorer

Task: Identify Processes Listening on TCP Ports

Task: Identify Processes Listening on TCP Ports: a task in Terminal-Lego-15k (Harbor dataset). Write a shell script that identifies which process (PID and process name) is listening on a given TCP port. This is a common network debugging task — equivalent to what netstat -pntl grep $PORT or fuser…

The task

Write a shell script that identifies which process (PID and process name) is listening on a given TCP port. This is a common network debugging task — equivalent to what `netstat -pntl | grep $PORT` or `fuser -n tcp $PORT` does on Linux.

Part of PrimeIntellect/Terminal-Lego-15k.