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).
Questions tagged [kill]
271 questions
119
votes
2 answers
How to stop a process in Terminal
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. In Windows, you can Ctrl+Break pretty much any terminal…
AngryHacker
- 19,327
71
votes
4 answers
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 the current process? I think it could save me…
julkiewicz
- 813
56
votes
17 answers
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 irrelevant) because the port is already…
Srekel
- 681
51
votes
8 answers
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 killing a process? In the Activity Monitor, when you…
Hristo
- 1,269
51
votes
4 answers
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 something?
Jack
- 2,011
37
votes
3 answers
On Windows, how can I gracefully ask a running program to terminate?
On Unix or Linux, it's easy to gracefully ask a running application to terminate: you send it the SIGTERM signal. If its process ID is 1234, you can simply run kill 1234 or kill -s TERM 1234 or kill -15 1234.
How can I do the same thing in…
35
votes
10 answers
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 to kill it, but it just remains there with no…
32
votes
8 answers
Kill a process with a specific "Command Line" from command line
Is there a command line utility that kills all processes with a specific command line?
E.g. kill all processes named "java.exe" with a command line that contains "-jar selenium-server.jar". This is possible through process explorer.
ripper234
- 11,903
30
votes
5 answers
"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 exiting. Best way to diagnose that is by using Task…
PxGrim
- 301
29
votes
2 answers
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 previously logged in from another location.
I…
CuriousMind
- 2,021
28
votes
7 answers
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?
Kris
- 615
28
votes
11 answers
How to kill all processes in Linux
I want to kill all processes on my computer. Which command can I use to do so?
Eva Feldman
27
votes
3 answers
Bash Man Page: kill vs kill -9
My man page does not document the difference between
kill
and
kill -9
Since these do different things why is the -9 not documented in the kill manpage? I thought maybe it was a shell specific things so I looked in the bash man page…
sixtyfootersdude
- 8,449
26
votes
9 answers
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
kill -9 4568
/bin/kill -f 4568
I have issued the…
user1093774
- 369
24
votes
13 answers
Terminate program that has taken over the screen
I've been using Windows forever, but one thing that has annoyed me is how hard it is to terminate misbehaving full-screen applications. In Linux, I can just switch over to terminal (Ctrl+Alt+F1) and use the terminal to forcefully close a misbehaving…
AStupidNoob
- 371