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

1
vote
2answers
48 views

Kill all tasks with PID above a certain integer with bash

How may I fetch and kill all processes with a PID above e.g 1000? Using commands like ps -A and top is fine for viewing the list of processes, but how would one only get the PIDs? The logic of ...
2
votes
1answer
24 views

Bash Script will not stop.

So i had the bright idea of making a script that pings my IP to see if its up as i am having some issues with it. so here is the script I made. while : do ping (IP address) done now it ...
2
votes
1answer
43 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 ...
0
votes
0answers
15 views

Is it ok to kill the sh zombie process?

sh process is zombie but i have doubts killing it in case it will affect the parent crond(31720), since it's in an enterprise server. USER PID %CPU %MEM VSZ RSS TTY STAT START TIME ...
0
votes
2answers
23 views

Ctrl+c is not working with gedit

When I use gedit command to try edit the a file and then pressing ctrl+c is not terminating the gedit and giving the following log gedit test.sh ...
4
votes
2answers
103 views

Some unexplained numbers 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 where are the other numbers for. So in short these are the numbers I know: Kill -1 ...
1
vote
1answer
128 views

In windows, do file-locks stay after a process was terminated via taskkill?

We are not talking about a reboot/restart here (similar to another question). This question distinguishes the different way that windows handles existing file locks on a taskkill versus the way it ...
0
votes
0answers
35 views

Don't kill slow processes on shutodown

When linux is shutting down it sends all processes first the term signal and then the kill signal. The time between the signals is very short, so that some processes always get killed. My Firefox ...
0
votes
1answer
343 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 ...
0
votes
0answers
13 views

How not to kill a wrong process from my script?

In Debian Linux I use the following scripts for alarm clock (called by at command). ~/bin/awake: #! /bin/bash set -m ~/bin/killawake PID=$BASHPID echo $PID > ~/tmp/wakeupalarm.pid while true; do ...
4
votes
2answers
1k 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 ~ $ ...
0
votes
1answer
346 views

Mongodb not shutting down via --shutdown command

i need help with a problem on shutting mongod down gracefully. I'm running mongodb on docker . i run mongod like with the command : mongod --config /etc/mongod.conf and when i close with : ...
1
vote
1answer
60 views

How do two users start/stop a service? eg: Tomcat

I found a big problem with sharing management of tomcat server. Eg: There are 2 Linux accounts (ua & ub) both in charge of start/stop certain tomcat server. ua: Start tomcat server with ...
0
votes
1answer
48 views

Killing a process does not work properly

I am attempting to kill a process (see the code below) but I have no success. This process running does not let me make new videos with the Raspberry Pi Camera and not even restart the Raspbian (which ...
0
votes
1answer
1k views

Killing processes in Raspbian

I am trying to kill the processes below: pi@raspberrypi ~ $ ps aux | grep raspi pi 4647 0.0 0.5 3520 1392 pts/2 S+ 12:05 0:00 grep --color=auto raspi root 8148 0.0 0.5 ...
1
vote
2answers
67 views

Linux: How to kill a root owned process by parameter's name?

I would like to know how to kill processes owned by the root based on their parameter's information: root 3176 0.0 0.8 3604 2252 ? S 21:33 0:00 sudo python main.py root ...
1
vote
1answer
247 views

Why SIGTERM signal does not work for process group?

[EDIT] I changed SIGINT to SIGTERM in whole question. I have a script which runs subproccess script which starts jboss. #!/bin/sh .... start_jboss.sh & trap 'kill -SIGTERM 0' EXIT HUP TERM INT ...
0
votes
0answers
36 views

Shutdown program with right click or something

I have Skype on my Windwos 8.1 computer and everytime I want to close the program I have to confirm twice that I really want to shut the program down. If I right-click on the Skype icon on the ...
16
votes
3answers
1k 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 ...
0
votes
1answer
155 views

The OSX Process that wont die

I've got a process on OSX 10.9.5 that just wont die. I have tried kill PID kill -9 PID sudo kill -9 PID killall sshfs killall -9 sshfs sudo killall -9 sshfs Activity monitor / select process / ...
0
votes
1answer
46 views

Kill browser tabs with Bash from younger to older

Hello i want to kill tabs from a browser(ex. chromium) by order from youngest to oldest. I used pkill -f -n -9 chromium but i want to use it in a while iteration with comparison to pkill's return ...
0
votes
2answers
532 views

How can I find wget processes older than one day in unix?

Using this command I can find all the processes for wget: ps -aef | grep -i wget But I want a command or a script which can provide me the processes older than one day for wget and kill them.
1
vote
1answer
221 views

Kill a process by PID started by Batch Script (avoiding other process of same name)

I have multiple processes by the same name (say multiple FIREFOX.exe process). A Batch script then opens another firefox.exe process and, after some predefined time, needs to kill the process it ...
1
vote
0answers
162 views

How to keep Linux kernel responsive while having high memory usage?

Sometimes I have a lot of programs running and despite of 16GB 8GB of memory my ubuntu linux 14.04 LTS turns out to be not responsive at all. I won't be able to get a TTY to kill some processes to ...
0
votes
1answer
376 views

Looking to kill frmweb processes with no jobs

So I am trying to figure out a way to kill Oracle frmweb processes that are doing nothing when load begins to get too high. So far, I have found this command: ps -elf | head -1; ps -elf | awk '{if ...
3
votes
2answers
597 views

Finding all not responding tasks from the command line in Mac OS X?

I know I can do ps -aux | xargs kill etc but I want to list the PIDs of all tasks that are not responding (the red ones in Activity Monitor). What command I can execute in the terminal to list these ...
0
votes
1answer
4k views

How to find and kill all Java Processes to avoid an OS reboot if Java will be installed silently?

Introduction In order to avoid a reboot or occurrence of a pop-up which requests to reboot the OS if a newer version of Java will be installed silently, all processes which are using Java have to be ...
1
vote
2answers
63 views

How to close a process that just doesn't shut down?

I am trying to uninstall qbittorrent but it just doesn't shut down. I tried killing the process both in Win 7 and using Process XP but it's still lingering. Any ideas on how to kill processes like ...
1
vote
1answer
1k views

Ctrl-C not killing process in CMD.EXE

I've had this issue for a while even after reinstalling. Issue happens after I reinstall all my programs and not in a fresh Windows install (obviously). Might have to spin up a VM and install each ...
1
vote
0answers
20 views

Reusing _kill completion in .bashrc fails

I'm trying to extend bash completion alias perf-connect-process="perf record -p"; alias pperf=perf-connect-process; complete -F _kill perf-connect-process; complete -F _kill pperf; by reusing the ...
1
vote
2answers
333 views

Kill processes and programs in windows instantly

Some programs I run can't be killed and terminated even from the Task Manager. Sometimes they can be terminated but it takes too long. I want a method that always kills them instantly. Is there any ...
0
votes
1answer
135 views

An unknown software opens a window that can't be closed even from the Task Manager

There is a windows that keeps on reappearing on my desktop and won't go away (it's not listed in the Application or Processes tab of Task Manager). It looks like a plain light gray box with two ...
1
vote
3answers
1k 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 ...
0
votes
1answer
366 views

How to find process stop time in linux?

I have one application which runs 24x7 in my system. But some how it was killed abruptly. I observe it 2 or 3 times from last 10 days. Now I want to find from how much time my application is stopped. ...
2
votes
0answers
87 views

Which process killed my process

One of my applications starts java.exe, but in between this 'java.exe' is killed by some other process. How can I know which process kills the java.exe. I am using Windows XP SP 2.
0
votes
1answer
79 views

Kill tmux when ssh is started

I have a server with tmux and a client with tmux. If I connect to my server I have running 2 tmux sessions, one from the client and one from the server. Is there a way to detach the clients sessions ...
0
votes
1answer
730 views

How to kill a process that just won't quit (killall -u username included)

I was fooling around with some applications in my mac (going into contents and trying to change some files, values, etc.) Of course sometimes I get crashes, but I usually just kill the process and ...
2
votes
3answers
4k 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: ...
0
votes
1answer
70 views

Kill display manager and start another one with a script

I have a small script in which I kill gdm3 and start up an X Session. It works, but I have to run it 3 times. export DISPLAY=:0 var = $(pidof gdm3) kill $(var) X :0 & xterm & export ...
0
votes
1answer
190 views

ControlC doesn't stop .cmd script in Windows7 CMD window

I work with several Windows7-64 systems. In all but one, typing ^C into a CMD window running a .cmd file, invariably (and expectedly) stops the program. More importantly, if the .cmd script launched ...
1
vote
2answers
715 views

Taskkill for all running processes that exist in a specific directory

I basically want to combine the following sets of commands. In other words I need to check to see if any executable that exists in c:\apps is running, and if any are, to kill them. Once these ...
0
votes
0answers
1k views

linux - kill -9 doesn't work on running process

I have apt-get process running on my server and I cannot kill it. root 26386 99.7 0.0 25588 2844 ? RN 06:52 956:49 apt-get -qq -y update I used kill 26386 first, then tried kill -9 ...
0
votes
0answers
201 views

Accidentally xkilled desktop and taskbar on linux

I was on CentOS with KDE, and I accidentally pressed Ctrl+Alt+Esc, and then clicked the desktop, and the taskbar. Only the mouse pointer worked now. My short research showed that this is xkill, and it ...
0
votes
1answer
126 views

How to relogin to root after killall -u root?

I had done a silly thing and pressed enter on the command: $ killall -u root And now we can't log in. The last command ran was: ws4-clarind:~ # killall -u root Connection to ...
1
vote
2answers
32 views

How to interrupt my script?

I use the following script (which I start from at command) as an alarm: #! /bin/sh set -m while true; do paplay /usr/share/sounds/phone.wav done & I want to bind a key to stop this alarm. Please ...
0
votes
0answers
618 views

how to kill a tcp connection in solaris operating system?

A client program connects to my server program written in JAVA via TCP connection (ServerSocket). I want to close the TCP connection between these two programs with a Solaris command or tool for ...
0
votes
1answer
34 views

Is there a version of kill with feedback?

Is there a fork or easy mod of the linux kill command to provide feedback? I'd like to avoid the cycle of: ps acx | grep rogue_agents killall rogue_agents # alternately, kill 007 ps acx | grep ...
5
votes
1answer
246 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 ...
0
votes
2answers
125 views

Is there a way to create a process which can be killed by anyone in Linux?

For example, I would like to start running a process in the background SECRETLY on a Ubuntu server , but whenever anybody except me logins to the server, the process must be killed by that user. Is it ...
3
votes
0answers
542 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 ...