2022 Developer Survey is open! Take survey.

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
0 votes
1 answer
35 views

How to kill this C program running inside tmux?

I'm testing a C program which has a section like this: #include <iostream> #include <unistd.h> #define LOOP_MAX 100 int main() { for (int i = 0; i < LOOP_MAX; i++) { printf(&...
user avatar
  • 157
0 votes
1 answer
43 views

Kill Linux of Chromebook installed via Linux

Some aplications I need (like VLC player, Office, etc) I instaled via linux beta on my Chromebooks. It works fine most of the time but when one of those processes crashes I can't kill it or restart it ...
user avatar
  • 101
0 votes
2 answers
92 views

How to kill a process on ubuntu that won't die?

I am trying to kill this process that seems to be stuck in a loop: > ps auxww | grep -E '^USER|bash' USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND ubuntu 61505 99.7 ...
user avatar
  • 303
0 votes
1 answer
50 views

Killall -9 chrome, but not chrome-beta

Both Google Chrome and Google Chrome Beta are named "chrome" in the process list. I want to kill all instances of chrome, but keep all instances of chrome beta;) Any pointers as to what ...
user avatar
1 vote
2 answers
1k views

sudo kill -9 pid doesn't kill softwareupdated in mac

I have a process softwareupdated which is consuming lot of data. I just want to close the process as I dont want to update . I tried sudo kill -9 pid but it doesn't kill softwareupdated in mac. I keep ...
user avatar
  • 111
1 vote
1 answer
39 views

Kill bash/terminal/tty window/session from another terminal

Linux ThinkPad-E480 5.8.0-50-generic #56~20.04.1-Ubuntu SMP Mon Apr 12 21:46:35 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux I have just encountered with the next situation: suspend command do nothing but ...
user avatar
1 vote
1 answer
200 views

How to safely kill bash/zsh/other shells with its history stored?

Shell programs do not react to SIGINT, so kill $(pidof shell) can not kill them. When I use kill -9 $(pidof shell), the shell immediately exited as I expected, but the history in the session is lost. ...
user avatar
  • 33
0 votes
1 answer
97 views

How to kill a focused window in Xdotool, but keep some windows out?

I have a shortcut ctrl+alt+x to kill a focused window with xdotool getwindowfocus windowkill I am on GNOME, X11 with lightdm, and when all windows have been killed and I press the shortcut gnome-...
user avatar
  • 1
1 vote
4 answers
558 views

Cant Kill Task Windows

I can not kill firefox.exe which appears to be running having some kind of problem. I tried taskkill and the solution in a prevous answer, but as one of the comments says When I call terminate it ...
user avatar
0 votes
1 answer
617 views

What is the point of the "/T" flag for taskkill?

taskkill /? says: This tool is used to terminate tasks by process id (PID) or image name. Listing the flags, it goes: /T Terminates the specified process and any child processes ...
user avatar
0 votes
1 answer
142 views

Is there a "nicer" way to close applications in Windows other than "taskkill"? (In the terminal.)

"Kill" sounds kind of harsh, as if I'm KILLING the process with an axe, suddenly, without forewarning, cutting off whatever work it might be doing right away, when I actually just want to ...
user avatar
0 votes
1 answer
247 views

Is it safe to use 'kill -9 -1' on ubuntu

I am using ubuntu 20.04, and sometimes due to some problems, my system hangs or glitches a bit so I run 'kill -9 -1' on the terminal to kill all the processes and the problems are solved. My question ...
user avatar
0 votes
1 answer
130 views

Created a looping Automator application. Now process is running indefinitely by launchd and cannot kill it

I'm losing my mind. I created a super simple Application in Mac Automator which just runs a one-line Python script and then has a loop action at the end. I ran this and it started working. Then no ...
user avatar
1 vote
1 answer
1k views

How to Kill Google Chrome Process Suspended (Access Denied)

Often (at least 3 times a day) my google chrome gets suspended on the task manager and there is nothing I can do to kill the process but to restart the system. And restarting my computer is so much is ...
user avatar
0 votes
1 answer
880 views

MySQL was killed by watchdog/snapd ubuntu ec2, watchdog is not installed but listing in ps

On one of my servers mysql was killed because of too much memory usage. Before it crashed the memory usage was around 95%. My confusion is what killed the process because I have seen in past whenever ...
user avatar
  • 132
0 votes
1 answer
195 views

How to kill suspended process by name?

I got a bunch of suspended processes. pkill cannot kill them but pretend to do that. This command actually works: pkill -e SOMENAMEHERE | grep -Eo '[0-9]+' | xargs kill -9 but it's too long to type....
user avatar
  • 189
3 votes
1 answer
2k views

How to terminate TeamViewer application from Mac OS Terminal?

I have tried terminating TeamViewer application from the Mac OS terminal using the following command. It kills the app but again it starts automatically in the very next second. How can can I ...
user avatar
  • 1,654
0 votes
0 answers
30 views

View what's killing another Windows process

I'm trying to figure out what (if any) process is killing another process on my Windows 10 machine. When I boot, after logging in, explorer fails to launch and I'm met with a black screen. I can ...
user avatar
0 votes
0 answers
685 views

It is safe to kill every process running on a port?

This is my problem. I'm running a Node.JS API on a Debian server using Nodemon (Because I'm currently programming on my server) and that API is on a Apache Virtual Host using a reverse proxy. I use ...
user avatar
  • 101
0 votes
0 answers
57 views

How to grep the process of iTunes in Python scripting

import os, signal def check_kill_process(iTunes): for line in os.popen("ps ax | grep " + iTunes + " | grep -v grep"): fields = line.split() pid = fields[0] os.kill(int(pid)...
user avatar
-1 votes
1 answer
2k views

Unable to kill a process (Prometheus) listening on port 9090 keeps restarting

I was using a tool called Prometheus to monitor containers on my VM. Now I want to remove it but it seems impossible. nima@caliper-latest:~/caliper$ sudo lsof -n -i4TCP:9090 COMMAND PID ...
user avatar
10 votes
5 answers
2k 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 ...
user avatar
  • 735
0 votes
0 answers
27 views

Why can't I kill -9 this process? [duplicate]

A moment ago I tried to fill all space in a USB drive by typing yes > a to create a very large file and overwrite the old (sensitive) data. But then, when the file grew to 4GB I got this error, and ...
user avatar
  • 253
0 votes
0 answers
343 views

How can I kill a process like Process-Hacker does

When I look for answers this many times and all the answers I have found just say use "taskkill /IM /F" But that doesn't work when you get access denied from a system process. How can I kill a ...
user avatar
0 votes
2 answers
2k views

What are the Chrome processes which do not terminate with TASKKILL IM?

A batch file is used to close browsers when backing up the user's profile(s). Firefox closes all processes on the taskkill command but Chrome doesn't. In this example, there are nine tasks even ...
user avatar
  • 1
0 votes
1 answer
38 views

List all processes I can kill, so I can kill them

I need to figure out all the processes I can kill as my user (without privileges), so I can kill them. how do I do that? I just wanna kill everything I can.
user avatar
  • 1,957
1 vote
0 answers
62 views

How to kill a program run inside screen that is not responding? [closed]

When running a python program inside a screen, from time to time the program stucks right from the beginning after just starting it and I can't quit it using Ctrl+C. (^C will be typed but no response)....
user avatar
  • 11
0 votes
0 answers
93 views

Automatically kill specific process by name whenever it runs again ubuntu

I somehow need a script to automatically kill a process by it's name on ubuntu, whenever that process runs again. Is there a way to do that?
user avatar
  • 1
3 votes
2 answers
927 views

trap in freestyle shell script not working in jenkins

I want the gracefull killing of my Jenkins job if someone aborts it, So I tried to trap the abort signal and customise killing step using shell script. But It seems like Jenkins is ignoring all the ...
user avatar
0 votes
1 answer
102 views

How to kill child of target process in Windows

I have multiple processes with the same name.However there are some that have child processes.I want to kill all those children.How can i manage that considering i know only the name of the group of ...
user avatar
0 votes
1 answer
5k views

Composer killed when setup laravel in Godaddy Server

I want to setup my laravel project on Godaddy server but when I am creating laravel project on Godaddy server, composer killed the process. composer require doctrine/dbal composer.json has been ...
user avatar
1 vote
0 answers
186 views

Sending SIGTERM to `script` results in a zombie process

I am implementing a simple system to run jobs remotely via SSH. My goal is to run the job within a screen and record all its output using script and upload the typescript to a server when the job ...
user avatar
0 votes
1 answer
2k views

Restart screenshot process on Mac OS

OSX has simple and useful screenshot hotkeys. Often though they stop working for me. I found that killing the screenshot process through Activity Monitor and re-running it helped and was quicker than ...
user avatar
  • 3,639
0 votes
0 answers
126 views

Is there a way to automatically kill a process that its window has been closed?

This is for games that are known to not close properly. Like Anthem right now. Like detect if the window is gone, if it is, then kill process.
user avatar
0 votes
0 answers
532 views

autossh creating many processes

I'm using autossh to connect to a reverse SSH tunnel. I run it from startup. However, I was facing problems in that the tunnel sometimes goes down. I created a script which checks if the tunnel is ...
user avatar
2 votes
1 answer
2k views

Linux: cannot kill "Software & Updates" process

Trying to do a software update, the corresponding program "Software & Updates" got stuck during the cache refresh. How can I kill such a process? I looked at all the running processes with su, ...
user avatar
  • 1,537
2 votes
1 answer
5k views

Why do I often receieve `no such process` in response to a process I want to kill?

me@me:~$ ps aux | grep -i firefox me 15413 0.0 0.0 14428 1036 pts/1 S+ 05:46 0:00 grep --color=auto -i firefox me@me:~$ kill 15413 bash: kill: (15413) - No such process Why might this ...
user avatar
  • 21
1 vote
1 answer
197 views

How to halt an attempted directory listing from pressing tab?

Sometimes I'll accidentally/instinctively double tab in a directory I probably shouldn't have. In the current case, the reason I'm writing this, it is on an old, very full cifs drive. Of course, this ...
user avatar
0 votes
1 answer
396 views

How to remotely terminate bash shell processes but ensure history is saved?

Occasionally my X11 window manager (i3) locks up, and I'm forced to switch to a Linux virtual console, or SSH into my machine, to regain control. Usually this happens when I have numerous rxvt ...
user avatar
  • 342
1 vote
2 answers
245 views

One-liner capturing output for sudo kill

Background I have some root processes that I'm trying to kill, more precisely some tcpdump processes. Hence, I need to use sudo kill. My current command looks something like this: sudo kill $(ps ...
user avatar
1 vote
1 answer
4k views

Kill command on outlook invokes Microsoft error reporting Mac

I am actually trying to close some processes using kill command. All the processes are getting killed graciously but when I invoke kill command on Microsoft Outlook like kill PID it's getting ...
user avatar
  • 161
0 votes
1 answer
4k views

Why running kill in linux needs sudo access

On one server(my development desktop), I am able to execute kill command without sudo, but on the other one, I will got kill: kill 1 failed: operation not permitted. I assume that kill command will ...
user avatar
  • 101
0 votes
0 answers
1k views

Cannot kill Xorg process

On my Linux box, Xorg server got stuck and is consuming 100% CPU. It normally does not do that, but the machine has been suspended/resumed several times and the displays are not connected - I assume ...
user avatar
  • 554
4 votes
2 answers
2k views

How to get killall on Cygwin

On Cygwin, I can access kill from bash, but when I try to execute killall, I get an error message saying “not available”. How do I get killall on Cygwin?
user avatar
1 vote
0 answers
112 views

Kill process at absolute time

I wish to run a command for the longest period possible and kill it at a certain absolute time (if it is still running), something like: killat "2018-06-09_23:55" ./myscript.bash The resources I've ...
user avatar
0 votes
1 answer
238 views

Process management in TempleOS: listing and killing processes?

TempleOS has different processes, according to docs/Glossary.DD.Z, There is no distinction between task, process or thread. The Fs segment reg is kept pointing to the current task's CTask. There ...
user avatar
  • 7,948
2 votes
0 answers
713 views

"Ctrl + c" combination works different on different SSH clients

While I using MobaXTerm I can make a ssh connection to remote machine and I can use Ctrl+C combination to kill a process that works on remote machine. But while I use PuTTy I can make a ssh to remote ...
user avatar
0 votes
2 answers
20k views

On macOS how to close (kill) all terminal processes(windows)?

Using macOS sierra, i am searching for a command with which i can close/kill all opened terminal windows (processes). Also it should killing all processes opened by this terminals... Why pkill ...
user avatar
  • 1
1 vote
1 answer
5k views

PuTTy SSH Session killed by signal 2

When I connect to a machine via ssh I can't use "Ctrl + C" combination because of it sends kill signal to session. As an example, I start a SSH session to client machine from main machine, I run "...
user avatar
2 votes
1 answer
175 views

Why chrome reacts after receiving kill-stop signal, and how to prevent that?

I am trying to save my laptop's battery by pausing/stopping completely chrome from doing stuff while minimized by manually sending it a kill-stop signal. When I did that, I pressed CTRL+T to test if ...
user avatar

1
2 3 4 5 6