Tuesday, November 2, 2010

How to kill a process on Linux

Here's a couple of commands that may come in useful:
sudo fuser -n tcp 10001
This should output something like:
10000/tcp: 5543
(List which process is using tcp port 10000)
From here you can just do
sudo kill 5543
netstat -l | less
(display listening server sockets)
(hit the "space key" to move down a page and hit the "q" key to quit)

No comments:

Post a Comment