Use the kill command

kill [PID]

PID is the process id of the command to end

Use the below to force terminate

kill -9 [PID]