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

0
votes
2answers
20 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
107 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
29 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
138 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
11 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
260 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
53 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
44 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
831 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
61 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
212 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
136 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
45 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
493 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
198 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
154 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
348 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
529 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
55 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
296 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
132 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
322 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
82 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
72 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
666 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
3k 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
66 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
183 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
678 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
187 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
123 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
572 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
240 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
121 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 ...
2
votes
0answers
421 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 ...
0
votes
1answer
375 views

kill command working despite error

after running this command kill -9 <PID> for ./sc_serv. I am getting this output below: -bash: kill: for: arguments must be process or job IDs -bash: kill: ./sc_serv: arguments must be process ...
2
votes
1answer
795 views

Linux command line: Kill vs Kill -9?

So I've set up some shell scripts to auto-deploy a fresh war file to a tomcat server. I call the shellscript to stop tomcat (shutdown.sh), and then I kill the catalina PID, however I've noticed that ...
1
vote
1answer
73 views

How do I execute savehist for tcsh history if my machine froze?

My MacBook Air froze all of a sudden: the keyboard, trackpad and display are all unresponsive. However, ssh works. I have one tcsh session active. Which signal do I send to tcsh for it to ...
1
vote
2answers
1k views

How to kick other root users logged in from different shells?

I logged into a machine, and entered: insite1@POC-Messaging1:/opt/insiteone/log> last -a | grep "logged" insite1 pts/6 Tue Jul 30 03:59 still logged in 160.110.5.210 root pts/5 ...