kill is a UNIX/Linux command to signal a process, by default with a signal to terminate the process. It can also be used to force a process to quit immediately without cleanly exiting or to tell a process to take some action (e.g. to signal a httpd to reread its configuration without restarting).

learn more… | top users | synonyms

32
votes
15answers
76k views

How do I kill a process that is dead but listening?

I'm developing an app that listens on port 3000. Apparently there's an instance of it still listening to the port because whenever I start it, it can't create a listener (C#, TcpListener, but that's ...
31
votes
4answers
38k views

How do you find the parent process of a zombie process?

How do you find the parent process of zombie processes? When the child process is something where the parent is not entirely obvious... Is there some way to list processes in tree format or ...
30
votes
2answers
173k views

How to stop a process in Terminal [duplicate]

Possible Duplicate: Ending a process in unix instead of interrupting it When I task in Terminal, such as ping blah.com, how do I then stop this task (other than closing the Terminal window. ...
22
votes
7answers
20k views

Why sometimes Windows cannot kill a process?

Right now I'm trying to Run/Debug my application in Visual Studio, but it cannot create it because the last instance of the app.vshost.exe is still running. Then, by using the Task Manager I'm trying ...
22
votes
3answers
15k views

SIGTERM with a keyboard shortcut

I know that inside a terminal, Ctrl+C keyboard shortcut will send a SIGINT signal to the current foreground process. Is there a way to setup a keyboard shortcut for sending SIGTERM or even SIGKILL to ...
19
votes
5answers
50k views

“Access denied” when trying to end a process on Windows 8

I get "Access denied" when trying to end a process on Windows 8. From Kill process (windows 8) issues on Stack Overflow, I've read: The process may have a thread active in kernel mode that is not ...
17
votes
3answers
19k views

Bash Man Page: kill <pid> vs kill -9 <pid>

My man page does not document the difference between kill <pid> and kill -9 <pid> Since these do different things why is the -9 not documented in the kill manpage? I thought maybe ...
16
votes
3answers
2k views

Prevent currently running linux task to be killed after logout from SSH

I have a computational task running for a few days on a linux server via SSH connection. It is not on the background, so the SSH connection is under hold of the task. I want to restart the local ...
16
votes
7answers
23k views

How to kill a process started with a different user without being root or sudoer?

in a Linux environment, I need to kill a process which has been started by user2 if I am user1 without being sudoers or using root. Do you know if there is a way of setting that when launching the ...
14
votes
2answers
464 views

killall shenanigans

So I was sitting around wondering what would happen if I typed: sudo killall -u root ...aaaaaand now the OS will not load. How do I fix this without just doing a reinstall? I'm not super worried ...
12
votes
6answers
24k views

Kill a process with a specific “Command Line” from command line

(Feel free to edit the title if you can think of something better) Is there a command line utility that kills all processes with a specific command line? E.g. kill all processes named "java.exe" with ...
11
votes
3answers
17k views

Cannot end Windows 7 process, even tried pskill

I am having a problem where processes are hanging and absolutely refuse to die. I have tried using the task manager and pskill from the console (with admin rights) and while the program will state ...
10
votes
4answers
10k views

How to kill one tab of google chrome using pid

I want to close one tab of chrome. I tried killing the pid of the tab, but the tab doesn't close instead says "Aw, Snap! Something went wrong while displaying this webpage. To continue, reload or go ...
10
votes
6answers
38k views

how to kill process in Mac OS X and not have it restart on its own

When I run sudo kill -9 [PID] with the proper process ID, the process stops but then is restarted and has a new PID. I'm trying to kill the mysqld process. How can I mimic the Activity Monitor in ...
10
votes
4answers
13k views

How to kill a windows process in a cygwin terminal?

I have a problem regarding how to kill a process in Cygwin on Windows. I am completely new to Cygwin. But I have a task that I simply cant kill. I have tried issuing the following commands: kill 4568 ...
10
votes
2answers
5k views

After-the-fact remote nohup with tcsh

I have a tcsh instance in an xterm that is running a long-term (weeks?) process. The Xvnc server it's running under went out in the weeds; it's consuming 100% CPU and is unresponsive. (This is a ...
9
votes
2answers
12k views

Kill process by name and owner?

Before I look into reinventing the wheel and roll my own, is anyone aware of an application/utility that allows me to kill processes, filtering by both process name and process owner? Alternatively ...
9
votes
5answers
6k views

kill -9 programs but they still hang on

I tried to kill all my background jobs submit earlier under KUbuntu by kill -9 $(jobs -p) Although this command immediately gave the message like [1] Killed myjob1 [2] Killed ...
9
votes
1answer
37k views

Windows: Fastest way of killing a process running on a specific port

I am going over this process many times. I have to kill a process on a Windows machine and I just know its port. Normally the steps are as below: Find the PID by looking at the ports (example port ...
9
votes
1answer
2k views

How to kill a task that is “lacking an instance”?

Spotify first killed itself but "something of it" kept lingering which was detectable as a task with PID 8664 and judging from the fact that RAM usage kept changing from time to time - it "did ...
8
votes
7answers
6k views

How to prevent these executables from starting up?

After removing the following executables from starting up, in the near future they reappear again: DDMService.exe: Re-enabled when visiting a DivX video online. DivXUpdate.exe: Re-enabled when ...
8
votes
2answers
6k views

What does %1 in “kill %1” mean?

I know that $! stores the pid of the last (background) process, but what does %1 mean? I often see it together with kill and it has the same effect as kill $!. Can someone give me a hint? (Such small ...
7
votes
5answers
23k views

Can't kill a sleeping process

I don't seem to be able to kill -9 a process which is in an interruptible sleep (S) state: [root@jupiter ~]# ps -elf | grep yum 4 S root 16790 1 0 75 0 - 73779 - Jan15 ? 00:00:...
7
votes
7answers
41k views

How to stop a bat process on Windows?

I have BAT file running in background on Windows which lasts about ten minutes. Now I want to stop it while it's running, but I can't find its name in the process-list in the task manager. So how can ...
7
votes
1answer
4k views

What to do if kill -9 doesn't work?

I've got a pesky process (in this case, a stranded process that was supposed to be running in iPhone Simulator (now long quit). 97442 ?? 0:00.00 (MyProcess) I've tried everything I can ...
7
votes
1answer
3k views

When a Python process is killed on OS X, why doesn't it kill the child processes?

I found myself getting very confused a while back by some changes that I found when moving Python scripts from Linux over to OS X... On Linux, if a Python script has called os.system(), and the ...
7
votes
1answer
5k views

What killed my process?

Been having a problem with application that keeps getting killed. This is running a RHEL5 server. We ran strace against the process and at the end of the trace file I get a bunch of +++ killed by ...
6
votes
5answers
13k views

Good, lightweight GUI-based process monitor for Linux

I'd like a snappy GUI-based (I insist since people still want to propose console-based) application that can show me running processes and allow me to kill them, on Linux. It doesn't need to be as ...
6
votes
1answer
11k views

Linux: close a program with command line (not kill it)

Some applications only allow one running instance (like eclipse, if you want to use the same workspace). So if I log in from another location, I have to kill/close the application that was open when I ...
6
votes
2answers
147 views

Which signal numbers work with the kill command?

We all know the kill command in Linux (kill -9 if some more power is needed ;) ), but what I don't understand is what are the other numbers for? These are the numbers I know: kill -1 → Hangup ...
6
votes
3answers
3k views

What does kill 0 do actually?

In the man page, it says: 0 All processes in the current process group are signaled And I tried like this: $ man kill & [1] 15247 $ [1]+ Stopped man kill $ kill ...
5
votes
3answers
2k views

What signals does OS X send for the Quit and Force Quit commands?

What happens behind the scenes when a user gives a Quit or Force Quit command from outside the target application (e.g. from Activity Monitor)?
5
votes
2answers
4k views

How to kill a process by port on MacOS, a la fuser -k 9000/tcp

On linux I can kill a process knowing only the port it is listening on using fuser -k 9000/tcp, how do I so the same on MacOS?
5
votes
3answers
25k views

kicking / logging out remote windows users?

I'd like to have something akin to a unix "who" and an option to kick out RDP sessions that are not supposed to be there (i.e. using up the limited number of connections). This is for a win2003 server ...
5
votes
4answers
3k views

How to kill a process with name having spaces?

A process with name=example can be killed by killall -9 example How to kill multiple instances of following command which contain spaces? "valgrind --tool=lackey ./testcases/kernel/syscalls/waitpid/...
5
votes
8answers
32k views

How to monitor and kill a process automatically on windows by process name [closed]

Is there a program or utility to monitor the running process and automatically kill specific processes? My work laptop has a whole bunch of useless crap that I cannot uninstall. Some of these ...
5
votes
1answer
6k views

After forced quit, “killall Finder” says “No matching processes…” but PID still exists?

Here's one for ya. Upon a forced quit of the Finder with unsuccessful relaunch, "killall Finder" in terminal returns: "No matching processes belonging to you were found" Oddly enough, the PID for ...
5
votes
1answer
319 views

How an unprivileged user could kill a process she didn't start?

I stumbled upon something very surprising which I cannot understand on a Red Hat EL 5.6 box : the user hri (which is in the group dba) is able to kill processes owned by user oracle (which is also in ...
4
votes
3answers
7k views

How to kill all processes returned by pgrep

I need to kill a few Python processes. I can get a list of the process numbers using pgrep python, but how can I kill them all at once instead of killing one by one? I'm looking for something like: ...
4
votes
2answers
2k views

Can’t kill a process that’s running—yet apparently not visible—in the task manager

I started an application that won’t run, yet I can’t delete it cause it’s still running. I can print the PID, but not kill the process using it. ~ $ ps ax | grep snappr | awk '{print $1}' 70824 ~ $ ...
4
votes
1answer
3k views

How to kill an invisible process?

I have a program that crashed, its GUI is frozen, and I would like to kill it. However there is no trace of it among the current processes. I tried both top and ps -A, but I got nothing. The ...
4
votes
1answer
1k views

Cannot end Windows 7 process, even tried ntsd

As descriebed in My VirtualBox virtual machine freezes, when I try to use the webcam, I end with a process which can't be deleted by taskmanger, pskill nor even ntsd, which was recommended here. BTW....
4
votes
1answer
74 views

Linux: How does user log out work

I'm new with linux. I've searched about how to safely log out other user and found few solution but I want to know how they work internally. I have few questions: 1. pkill -KILL -u {username} Does it ...
4
votes
2answers
261 views

How to disable jobs killing when leaving the terminal

When I leave a terminal via Ctrl+D and there are jobs in the background I get There are stopped jobs for the first time, but when I press Ctrl+D again, the jobs get killed. Can I disable the latter ...
4
votes
2answers
4k views

taskkill - end tasks with window titles ending with a specific string

I need to write a batch program to end all MS office communicator tasks with window titles (usually ending with pattern "- Conversation" . I tried taskkill /FI "WINDOWTITLE eq *Conversation" /...
4
votes
1answer
777 views

Simulate keyboard interrupt to gracefully exit task in Windows?

I have a process that doesn't behave when I do a taskkill -f, but the only option taskkill gives me is to kill it with -f. When I have the exe running in the Command Prompt I can hit Ctrl + C twice ...
4
votes
1answer
4k views

How to kill all the Tortoise SVN Process in the Windows environment?

From tools like procexp (Sysinternal), we can see and kill various processes who contains the string tortoise or svn. But there are some other running processes that I cannot kill because I do not ...
4
votes
2answers
1k views

How to kill a process on Mac OS X that's “trying to exit” (E)?

On Mac OS X 10.6 I sometimes get processes that show up in "ps" as "E", which the man page says means they're "trying to exit", but they won't. "kill -9" doesn't work, neither does waiting. Is there ...
4
votes
1answer
128 views

Kill unresponsive process in windows that won't stop through Task Manager or Process Explorer

Up front: I'm using windows 7 64 bit. So sometimes I am trying to kill a process but it won't quit. I can try killing the process or the process structure, but Task Manager won't accomplish anything. ...
4
votes
5answers
230 views

How to prevent a process from executing in bash

The following command has been entered: sleep 12h; nuke-russia It was entered on one of the Debian's ttys. I would like to cancel the sleep without nuking anything. I don't want the nuke command to ...