To get a list of the processes running in the current terminal, you can use ps :
$ sleep 1000 &
$ ps -opid,comm
PID COMMAND
1000 sh
1001 sleep
1002 ps
To kill a running process, use kill with the process ID (PID) indicated by ps:
$ kill 1001
$ ps -opid,comm
PID COMMAND
1000 sh...