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
1
vote
1answer
19 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 ...
1
vote
1answer
18 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. ...
0
votes
1answer
21 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-...
0
votes
0answers
168 views

why end Kernel panic - not syncing: Attempted to kill init! exit code=0x00007f00?

This message is displayed when I tried shutting down the system. end Kernel panic - not syncing: Attempted to kill init! exit code=0x00007f00 what is wrong? Why did it fail to shutdown?
0
votes
0answers
13 views

TSTP free occupied GPU

I train models for several days on a dual GPU machine. Often, there are some situations where I need to quickly run a test or inference on a GPU, but there's no way to do that (that I know of) without ...
0
votes
0answers
54 views

How to automatically kill a process by name as soon as it is started?

Is there a way to automatically kill a certain (sub)process the very moment it is launched? I know that processes can be filtered by name and killed doing this: sudo killall -I -s SIGKILL <process ...
1
vote
4answers
397 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 ...
0
votes
1answer
57 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 ...
0
votes
1answer
116 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 ...
0
votes
1answer
107 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 ...
0
votes
1answer
24 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 ...
1
vote
1answer
575 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 ...
0
votes
0answers
112 views

Kill child processes of an OpenRC service managed by supervise-daemon

I have a shell script that spawns multiple processes, which run for an indefinite amount of time, however with the following OpenRC init script and the supervise-daemon daemon, upon stopping the ...
0
votes
1answer
432 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 ...
0
votes
1answer
120 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....
2
votes
1answer
957 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 ...
0
votes
0answers
27 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 ...
0
votes
0answers
279 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 ...
0
votes
0answers
54 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)...
-1
votes
1answer
796 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 ...
9
votes
5answers
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 ...
0
votes
0answers
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 ...
0
votes
0answers
146 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 ...
0
votes
2answers
1k 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 ...
0
votes
1answer
35 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.
1
vote
0answers
52 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)....
0
votes
0answers
86 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?
3
votes
2answers
722 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 ...
0
votes
1answer
86 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 ...
0
votes
1answer
4k 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 ...
1
vote
0answers
127 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 ...
0
votes
1answer
1k 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 ...
0
votes
0answers
68 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.
0
votes
0answers
364 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 ...
2
votes
1answer
1k 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, ...
2
votes
1answer
4k 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 ...
1
vote
1answer
194 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 ...
0
votes
1answer
210 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 ...
1
vote
2answers
206 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 ...
0
votes
1answer
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 ...
0
votes
1answer
3k 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 ...
0
votes
0answers
853 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 ...
4
votes
2answers
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?
1
vote
0answers
106 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 ...
0
votes
1answer
201 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 ...
1
vote
0answers
457 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 ...
0
votes
2answers
16k 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 ...
0
votes
1answer
4k 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 "...
2
votes
1answer
162 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 ...
-1
votes
1answer
655 views

How to get rid of AVG Watchdog & AGVAmps services Win 7

First time poster here so please be kind! Been having a few problems with my mouse the last couple days & while investigating the problem I happened on these two services in my task manager... "...

1
2 3 4 5 6