Questions tagged [kill]

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).

Filter by
Sorted by
Tagged with
115 votes
2 answers
648k 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. In ...
AngryHacker's user avatar
  • 18.7k
70 votes
4 answers
69k 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 ...
julkiewicz's user avatar
55 votes
17 answers
135k 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 ...
Srekel's user avatar
  • 671
51 votes
8 answers
156k 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 ...
Hristo's user avatar
  • 1,269
51 votes
4 answers
71k 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 ...
Jack's user avatar
  • 1,961
33 votes
10 answers
60k 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 ...
Néstor Sánchez A.'s user avatar
33 votes
3 answers
77k views

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 ...
unforgettableidSupportsMonica's user avatar
32 votes
8 answers
59k views

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 ...
ripper234's user avatar
  • 11.5k
30 votes
5 answers
96k 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 ...
PxGrim's user avatar
  • 301
28 votes
2 answers
42k 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 ...
CuriousMind's user avatar
  • 1,981
27 votes
11 answers
261k views

How to kill all processes in Linux

I want to kill all processes on my computer. Which command can I use to do so?
user avatar
26 votes
7 answers
118k 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?
Kris's user avatar
  • 595
26 votes
9 answers
39k 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 ...
user1093774's user avatar
26 votes
3 answers
32k 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 it ...
sixtyfootersdude's user avatar
24 votes
13 answers
138k views

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 ...
AStupidNoob's user avatar
22 votes
7 answers
61k 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 ...
user avatar
21 votes
4 answers
10k views

How to 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 ...
Ali's user avatar
  • 441
20 votes
4 answers
78k 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 ...
Ira's user avatar
  • 323
20 votes
1 answer
31k 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 ...
Raffael's user avatar
  • 1,211
19 votes
3 answers
82k views

Kill the currently active window with a keyboard shortcut

How can I kill the currently active window with a command or keyboard shortcut? Alt+F4 closes a window, but first it will wait for the program to respond. Depending on the application, this may take ...
Kamil Slowikowski's user avatar
19 votes
2 answers
17k 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 ...
medihack's user avatar
  • 920
19 votes
2 answers
115k views

Restart process on linux by its pidn number with kill command, how?

Well, I want to be able to restart processes on linux and so I looked into kill manpages for that. Apparently kill -l would list all the signals I could send to a process to do what I need, which are:...
Ruben Marrero's user avatar
19 votes
3 answers
19k 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 ...
Firegun's user avatar
  • 303
18 votes
4 answers
35k 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 ...
Naveed's user avatar
  • 333
17 votes
5 answers
43k views

How to kill suspended processes in Windows 10

I have found tons of arma3.exe processes in Task Manager on Windows 10. They all have status "Suspended". When I try to kill them, I get the message "Access Denied". I tried to ...
Кирилл Трофимов's user avatar
16 votes
5 answers
55k 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:...
del's user avatar
  • 542
16 votes
3 answers
263k views

How to overcome Access Denied when killing process in Windows? [duplicate]

How to kill process which does not want to? I have Access Denied message when trying to kill the process. I know it can be due to device driver waiting and probably this is the reason. But my ...
Dims's user avatar
  • 12.7k
14 votes
2 answers
556 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 ...
DR.'s user avatar
  • 181
13 votes
6 answers
33k views

Good, lightweight GUI-based process monitor for Linux [closed]

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 ...
fury's user avatar
  • 339
12 votes
5 answers
25k 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: ...
user1050619's user avatar
12 votes
2 answers
19k 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 ...
Callie J's user avatar
  • 679
12 votes
3 answers
56k 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 ...
Armand's user avatar
  • 414
12 votes
3 answers
20k 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 ...
Chris's user avatar
  • 123
11 votes
5 answers
3k views

Killing task by name - start menu shortcut

I have a problem with a specific application that I am executing. The application is full-screen in the foreground. About once per day, it hangs. When it does, I can only open start menu. I cannot ...
Alexander's user avatar
  • 765
11 votes
7 answers
129k 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 ...
SpawnST's user avatar
  • 2,371
11 votes
2 answers
9k 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 ...
wfaulk's user avatar
  • 6,228
11 votes
5 answers
17k 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 ...
Tim's user avatar
  • 17.3k
10 votes
6 answers
20k 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 (i....
Tim's user avatar
  • 17.3k
10 votes
1 answer
19k views

Killing rsync softly

Is there a way of tell rsync to stop whenever possible in a clean way? Two options: tell rsync to stop transfering the current file, clean any temp file and exit; or let rsync end the transfer of the ...
Manuel's user avatar
  • 333
10 votes
7 answers
62k 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 ...
user17810's user avatar
  • 217
9 votes
2 answers
7k 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 ...
Nathan Long's user avatar
  • 26.6k
9 votes
4 answers
9k 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/...
Uthman's user avatar
  • 967
8 votes
3 answers
7k 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)?
Blacklight Shining's user avatar
8 votes
8 answers
10k 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 ...
Tamara Wijsman's user avatar
8 votes
2 answers
43k views

kill - no process found

when I list my processes I have: root@adam-ThinkPad-T410:~# ps -e | grep signals 11641 pts/0 00:00:00 signals 11642 pts/0 00:00:00 signals 11643 pts/0 00:00:00 signals but when I ...
xwhyz's user avatar
  • 181
8 votes
1 answer
6k 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 think ...
BadPirate's user avatar
  • 183
8 votes
1 answer
1k views

Un-pause all paused processes osx

In osx it is possible to un-pause a single process with the command: kill -CONT 1234 Where 1234 is the process id. Is there a way to un-pause every paused process on the machine? Why: There is a ...
Automatico's user avatar
8 votes
1 answer
5k 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 ...
Hugh's user avatar
  • 1,201
8 votes
1 answer
14k 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 ...
Old McStopher's user avatar
7 votes
6 answers
24k views

Pipe output of awk to kill -9

I'm trying to kill any process that has to do with mysql. I'm piecing together a command, and so far, haven't come up with the right solution. One other consideration, is that the last process will ...
well actually's user avatar

1
2 3 4 5 6