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

23
votes
12answers
45k 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 ...
21
votes
3answers
20k 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 ...
18
votes
9answers
11k 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 ...
15
votes
7answers
12k 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 ...
15
votes
4answers
9k 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 ...
14
votes
2answers
438 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 ...
10
votes
3answers
10k 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 ...
8
votes
2answers
55k 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. ...
8
votes
3answers
5k 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 ...
8
votes
3answers
10k 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 ...
7
votes
4answers
13k 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 ...
7
votes
2answers
4k 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
3answers
14k 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 ...
7
votes
5answers
4k 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 ...
6
votes
2answers
6k 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 ...
6
votes
3answers
4k 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 ...
6
votes
7answers
4k 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 ...
6
votes
1answer
3k 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 ...
6
votes
5answers
5k 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 ...
6
votes
7answers
19k views

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

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 ...
6
votes
1answer
2k 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 ...
5
votes
3answers
2k 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 ...
5
votes
1answer
2k views

When a python process is killed on OSX, 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 OSX... On Linux, if a python script has called os.system(), and the ...
5
votes
1answer
177 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
5answers
8k 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 ? ...
4
votes
2answers
4k 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 ...
4
votes
3answers
701 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)?
4
votes
1answer
11k 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 ...
4
votes
1answer
746 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. ...
4
votes
3answers
1k 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 ...
4
votes
1answer
2k 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
873 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
5answers
221 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 ...
3
votes
4answers
776 views

How do I kill a process by its name in Linux?

I have a process with the name bla, and I want to kill it by its name. When I run ps aux | grep "bla", I get 2 entries: process bla and blablablab How do I filter it out?
3
votes
4answers
5k 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 ...
3
votes
7answers
21k 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 ...
3
votes
7answers
426 views

Bash operator < , > , | and grep / kill

As an exercise, I wanted to kill a process by command line using basic bash principles but i'm having some errors that i don't understand: ps -A | grep nautilus | egrep -o '[0-9]{4,5}' | kill 1) It ...
3
votes
1answer
55 views

magic combination

I stopped using the Unix process ctr + z. Then I tried to kill the process and did not work. A friend from school was recommended to use the kill -9 process_id. What is the magic combination?
3
votes
2answers
1k views

Kill bash processes “nicely”

I'm trying to avoid kill -9 for the reasons described in the Useless Use of Kill -9 form letter. Is this function sufficient, or do I need to kill the kill processes after a timeout or take care of ...
3
votes
2answers
2k views

kill process windows using taskkill

I have a java script which is running and kills some processes according to the pid. I run a shell with command of "taskkill /F /pid " adding the pid of the process. I have a problem that sometimes ...
3
votes
1answer
2k 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 ...
3
votes
1answer
929 views

Kill Infinite loop at Upstart's run level

One of my applications is at a infinite loop in the runlevel 1 by printing No protocol specified continuously after running startx -- :1. The run level does not listen to my commands given at the run ...
3
votes
1answer
1k views

Can't kill user process

On a Linux system it seems I can't kill my process I just started. ps -ax output: 6731 pts/1 DLl 0:06 ./main I tried kill -9 6731 but it just stays there. I don't have root access. What ...
3
votes
2answers
2k views

Killing all processes of current user

user@host$ killall -9 -u user Will it definitely kill all processes owned by user (including forkbombs)? No new processes is spawned to user from other users. No user's processes are in D-sleep and ...
3
votes
1answer
491 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 ...
3
votes
1answer
1k views

Can not kill vpc.exe in Windows 7

I have a Windows XP virtual machine on my Windows 7 x64 Ultimate machine that I use for testing. Every once in a while when I try and start the vm, nothing happens and I know I have to reboot my ...
2
votes
4answers
5k views

Kill window or application just like linux do

Is there any way to kill or force closed a particular hanging window or hanging application by selecting it with some hotkey? Similar to Ctrl+Alt+Esc and select window in Ubuntu? (I may be ...
2
votes
3answers
2k views

How can I kill a process from the command prompt on Windows NT?

How can I kill a process from the command prompt on Windows NT? Preferably with a tool that comes with the operating system.
2
votes
4answers
4k views

kill all processes of a user except a few in linux

I was running some processes under a screen session on a remote server. When I tried to kill all those processes by: pkill -U tim all my processes are killed including those I don't want to kill ...
2
votes
1answer
679 views

What's the Unix command-line symbol for “the PID of the last suspended process”?

In an interactive console like irb, sometimes something will go wrong and the console becomes unresponsive. One solution is to suspend the process, then kill it. To suspend the process, I can press ...