HF RL Explorer

Task: Kill a Process Running on a Specific Port

Task: Kill a Process Running on a Specific Port: a task in Terminal-Lego-15k (Harbor dataset). Write a shell script that correctly kills a process listening on a specified port. The script must demonstrate proper command substitution syntax to capture the PID from lsof and pass it to kill .

The task

Write a shell script that correctly kills a process listening on a specified port. The script must demonstrate proper command substitution syntax to capture the PID from `lsof` and pass it to `kill`.

Part of PrimeIntellect/Terminal-Lego-15k.