$ARGUMENTS: port number (one or multiple, separated by spaces/commas. e.g. 3000 or 3000 8080 5173)
$ARGUMENTSFind and terminate the process running on each port specified in .
Proceed for each port in the following order:
lsof -ti :<port>Use the command to find the PID of the process using that port- If there is a PID,
kill -9 <PID>terminate the process with - If there is no PID, report "No process is running on port "
- After termination, verify that the port has been properly freed
If multiple ports are specified, report the result for each port individually.