Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
2answers
67 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
47 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
167 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
110 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 ...
0
votes
2answers
308 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?
0
votes
0answers
90 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 ...
-2
votes
1answer
82 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
82 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
2k 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
0answers
32 views

MacBook Pro with Linux: how to kill KDE when stuck?

I installed Linux on my Apple MacBook-Pro 17". KDE just froze, and I would like to kill it and get to the command line. I tried a set of different key combinations, without success, e.g. ctrl+alt+F1 ...
0
votes
1answer
893 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
74 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
162 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
vote
2answers
566 views

How to gracefully kill the transmission-daemon in a docker container?

I'm trying to dockerize a standalone transmission-daemon with https. So I'm using transmission-daemon and nginx packages, and the docker is based on alpine Linux. To run both programs, I'm using ...
0
votes
0answers
40 views

how can I determine which process is creating a new process?

I terminated a process from windows task manager, but it keeps revive. I think some other process is monitoring it alive and relaunch it if it's dead. The revived process has no parent process. Is ...
1
vote
1answer
644 views

Cannot kill mongodb process

I am trying everything but every time I kill the mongod process it starts a new one in a different PID. I even uninstalled it, but still I have the same behavior. When I run this I get ps -ef | ...
2
votes
2answers
52 views

abort spawned program when it prints a specific warning

My Bash 4 script calls a third-party program P (one that I can't recompile), which prints warnings to STDOUT. When it prints yikes, it also enters an infinite loop. So when I detect a yikes, how can ...
4
votes
1answer
976 views

Kill specific instance of process on windows

I could not find help to this specific question, and I wonder if it has a solution. I have multiple instances of a program running on Windows 7. How can I kill a specific window (maybe based on the ...
2
votes
1answer
167 views

Killing listening process port X without knowledge about name

I would like to kill process that is listening on port 5000. I don't know how to do it because when I put: netstat -nlp | grep 5000 I got: udp6 0 0 :::5000 :::* - so I don't know name of process. ...
1
vote
2answers
868 views

killall chromium-browser: no process found

I had been able to do killall chromium-browser to stop all chromium browser sessions, but not anymore: $ killall chromium-browser chromium-browser: no process found That's been a while since my ...
2
votes
2answers
4k views

taskkill: The process not found

This happens from time to time: I run a simple taskkill command (as administrator) like this: taskkill /im sidebar.exe /f But get the following: ERROR: The process "sidebar.exe" not found. Also ...
0
votes
1answer
92 views

ssh into a machine and search for process, kill using xargs

I am doing this, guastest@iridium06.psc ~> ssh <machine> jps | gawk '$2 == "<process>" {print $1}' | xargs kill kill: sending signal to 75797 failed: No such process guastest@iridium06....
0
votes
1answer
528 views

Unable to kill process, launchctl unload/remove failed

I have a process running in the background from a trial I once had installed (Bitdefender Antivirus). I tried uninstalling it but there's some parts that I did not manage to get off my computer. Here'...
0
votes
0answers
366 views

I need an auto task killer for windows

I'm looking for some software that automatically kills the program taking the most amount of ram once the ram used goes past a set threshold the reason why is because if I don't kill the process in ...
0
votes
2answers
5k views

why operation not permitted when kill a nonexistent process and why need to be killed with sudo

Linux version: CentOS 7 [weizhong@bja /tmp] $ll apis_response_time_analysis.pid -rw-r--r-- 1 weizhong users 5 Jan 22 09:40 apis_response_time_analysis.pid [weizhong@bja /tmp] $cat ...
0
votes
0answers
284 views

Grant a non-admin right to terminate processes on a Server 2012

Is there a way to grant a non-admin user the rights to terminate/kill a process on a Server 2012 without making them local admin? I know it's an odd question, but please, if anyone has a suggestion, ...
1
vote
1answer
998 views

How to easily kill the Google Chrome main process (Windows 7 / Ubuntu Linux) [duplicate]

I like Chrome's feature that lets me restore its pages after it's been closed ungracefully. I use that as a way to save my session (e.g. when just rebooting to install OS updates). What I've been ...
3
votes
1answer
928 views

Global hotkey to kill a process in Windows 7

I need to make a global shortcut to kill a process with known name. E.g. in GNU/Linux you can do it using xbindkeys to bind "killall firefox" to Ctrl+Alt+K. I need to kill, not terminate a process, so ...
0
votes
1answer
639 views

Closing a socket which keeps waiting a child process, when the parent process has been killed

The situation is the following one: A service/parent process is connected to a "public port" (the parent process is a service). That "public port" is 11000. When new requests arrive to the parent ...
1
vote
2answers
51 views

How to find which user killed my program?

I am running a long running program on a Linux server. Many other users are also running their programs on this server. All of us have sudo permissions. Assume a mischievous user kills my running ...
0
votes
1answer
261 views

bash: let a process run in background, restart if required, but receive CTRL-C from the parent script

I'm using livestreamer and ffmpeg to grab images from a live stream at 0.1 fps: livestreamer --player "ffmpeg -i" --player-args "{filename} -vf fps=1/10 out%04d.png" https://www.ustream.tv/channel/...
4
votes
1answer
98 views

What happens when I try to use kill with a process id inferior to -1?

I’m studying for an exam and I’m not sure at all about what happens if I use kill with a pid < -1. Am I allowed to end processes of a group in which I’m not included? Which processes are ...
1
vote
2answers
7k views

How to kill suspended processes in Windows 10

I've found a tons of arma3.exe processes in Task Manager. They all have status "Suspended". When i'm trying to kill them, i have message "Access Denied". I've tried to kill them with cmd. Using /f /t ...
0
votes
1answer
781 views

Why doesn’t “sudo rm /bin/kill” delete the kill executable

I tried running sudo rm /bin/kill in an Ubuntu VM to delete the kill command. Running which kill gives no output as if the file doesn’t exist but running kill works perfectly ? Why does the kill ...
5
votes
4answers
6k views

How to disable the 'kill' command on Linux

I want to disable all kill commands (including root user). I have tried to change permissions, but it still can be executed. Is there a way to do that?
2
votes
0answers
1k views

Kill all Screen Sessions with Same Name

I have multiple screen sessions with the same name due to a bug. How can I remove these all in 1 command without affecting other screen sessions? I used the command from this post: https://...
0
votes
0answers
78 views

How can I find the PID for software where the name of the software is different from the executable?

I run "Videos" software from the Dash in Ubuntu. After some minutes the software freezes. I've tried searching for the PID of the software to kill it, but I can't find any result with these commands: ...
3
votes
2answers
553 views

How can I close Microsoft Word on a remote Windows machine?

My company has a ultra-low tech 'document sharing system': We have certain key Word documents that are stored on a shared drive on a Windows 10 PC and everyone can write to the document. They are told ...
0
votes
1answer
483 views

How to kill second gedit?

I executed this command: for run in {1..3} do gedit & done How can i kill second gedit? Because result of this command: ps -eo cmd,pid | grep gedit is: gedit ...
0
votes
0answers
34 views

Linux: which method does linux use to log out [duplicate]

I'm interested how does linux log out work(what happens when I click log out from GUI). I've searched and found few ways to log out. pkill -KILL -u {username}, gnome-session-quit. I'm using Ubuntu 14....
4
votes
1answer
598 views

Linux: How does user log out work

I'm new with linux. I've searched about how to safely log out other user and found few solution but I want to know how they work internally. I have few questions: 1. pkill -KILL -u {username} Does it ...
0
votes
0answers
3k views

Can't end process in Task Manager, no error messages

I searched for question similar to this, but they all mentioned error messages in Task Manager. I'm not getting any. I could no longer open a new instance of either Firefox or Chrome after exiting ...
7
votes
1answer
880 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 ...
0
votes
1answer
2k views

Is there a Keyboard shortcut on windows to kill a process when black screen and task manager won't even come up?

Sometimes some games crash, but the screen stays black; alt-tab, ctrl-alt-del and ctrl-shift-esc don't wrok and the only option I have is to shutdown the PC (I have windows 10 now, when I had 8 ...
0
votes
1answer
2k views

How to stop all process of specific apache?

I use CentOS and have running multiple instances of httpd, example: /usr/sbin/httpd /opt/zimbra/httpd/bin/httpd But need kill all process only /usr/sbin/httpd killall -9 -v httpd Kill all httpd ...
5
votes
1answer
7k views

Kill unresponsive process in windows that won't stop through Task Manager or Process Explorer

Up front: I'm using windows 7 64 bit. So sometimes I am trying to kill a process but it won't quit. I can try killing the process or the process structure, but Task Manager won't accomplish anything. ...
1
vote
2answers
668 views

How to (what program) kill a process in Windows that has been inactive for X seconds and is running in multiple instances

I have multiple instances of a programm running and from time to time it stops responding. I need to check if processes of X have not been responding for >X seconds, and if yes, kill this exact ...
3
votes
1answer
5k views

An attempt was made to access an exiting process [duplicate]

We have a directory that we cannot delete because... Cannot remove item C:\myDir: The process cannot access the file 'C:\myDir\' because it is being used by another process. Inside Resource ...
1
vote
0answers
136 views

How to kill a process that calls execv?

A process that calls execv is not dying, by, what looks like, design. Example borrowed from here: #include <sys/types.h> #include <unistd.h> #include <stdio.h> main() { pid_t ...
3
votes
1answer
1k 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 ...