Try the following command on your Linux terminal:
kill -SIGINT processPIDHere
Actually, Ctrl C sends the SIGINT signal which is a signal for the interruption, and kill sends the SIGTERM signal which is a signal for termination by default unless you specify the signal to send.