How to kill a background process in linux

5.8k Views Asked by At

I am doing rpc connection between two computers. I have started a process ./server & in one computer (linux) and forgot to kill. Now when I try to establish the connection again, it says RPC: Port mapper failure - RPC: Timed out. because the old process is still running in the background. How do I kill it?

1

There are 1 best solutions below

3
On

First get the process id of that job

$ pgrep wget

then kill it..

$ kill<pid>