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]

used in bash/shell to kill process

0
votes
1answer
66 views

vim using up 100% CPU, can't kill it

Every so often (about once a month), my vim starts eating resources like crazy, and I'm unable to kill it. Here's an example: I ran: kill 13799 To no effect. I would like to know: 1) Could be vim ...
3
votes
1answer
51 views

Quit specific GUI application showing “save the changes” dialogue box

ps aux | grep -i office | awk {'print $2'} | xargs kill I can use the above command to kill LibreOffice but it will abruptly kill the process. But I wish to do it the same way it happens when I shut ...
1
vote
1answer
34 views

What the difference between the output of kill -l on Bash and Zsh?

When I run the kill -l command in Zsh and Bash, the results are different. Why is that?
1
vote
0answers
42 views

Ubuntu Server requires service restart every few days

I'm new here and I hope you can help me out this time. I have a MySQL server which receives many requests from my other servers...daily up to 1000 requests (HTTP and remote MySQL). However, for some ...
0
votes
1answer
42 views

Send multiple kill signals to a process

Say I run a .sh process. And now I open a new terminal tab and I want to send signals to it, for that, I just use kill: kill -*signal number* *pid* right? But I want to send 13 signals at the same ...
3
votes
0answers
78 views

How can a blacklist of programs be defined for halting if RAM memory usage goes beyond a certain point?

My computers have been freezing too much because of a lack of RAM. I need this to happen less. I am aware that the system in this high-RAM usage state is technically still solving the problem via SSD ...
1
vote
0answers
44 views

How to kill colord-sane process

On my system, colord-sane reproducibly prevents the system from suspending to RAM. This is what I can find in the syslog: systemd-sleep[32375]: Suspending system... kernel: [55908.804118] PM: ...
0
votes
2answers
88 views

How to abort Fight Flash Fraud (F3)?

I am using the commands f3write and f3probe and want to abort them. There is no consideration of this in the manual and Ctrl-C is not working. I can kill the process in task manager but I was ...
1
vote
1answer
83 views

Force ubuntu to log out at a specific time

I'd like to force my account to log out at a specific time as a self-restraint measure (e.g., to ensure I go to bed on time). And for the script to run whenever I try logging in after that time ...
-1
votes
1answer
349 views

How to kill chrome's GPU process from cmd line? [closed]

[I'm on OSX but shouldn't be relevant] oftentimes, with many chrome tabs open, chrome will freeze and not serve any page. What seems to reliably work in this case is to go to: More Tools > Task ...
2
votes
1answer
207 views

How do I kill a Firefox process thrashing my computer? 18.04

In short: a Firefox process takes control of Ubuntu 18.04 LTS in my Acer TravelMate P, and it seems there's nothing I can do but to shutdown the computer. This is similar to https://superuser.com/...
0
votes
0answers
49 views

Unable to stop VIM with Kill, Htop, or anything else

I'm running Ubuntu Bionic. I installed SLiM display manager so my GUI uses tty2 and I ran vim to edit some C++ code in tty1. Suddenly, it froze completely. I tried to type things but nothing would ...
1
vote
1answer
44 views

Looking to use kill -9 instead of killall

Looking to use kill -9 instead of killall using process name. Is there a way I can grep or awk the pid of a given process name/s then kill it will kill -9 ? killall fails a lot for me. I'm looking ...
0
votes
0answers
24 views

Hibernate Button on titlebar of a window or as a key shortcut?

So i want to pause programs I don't actively use, so I can access them directly on demand via the STOP/CONT kill command: kill -STOP [PID] kill -CONT [PID] But is there also a way to add a button to ...
1
vote
1answer
359 views

Killing Ubuntu window in WSL

I'm totally new to Ubuntu so please forgive this newbie question: I just installed Ubuntu to run under Windows 10 and was playing around with some commands. The "wifi" command, however, seemed to hang ...
15
votes
3answers
3k views

What does the “<>” mean in “kill -9 <>”?

I am going through a tutorial on recovering from a database failure and in the tutorial, a failure on the host of the primary database is simulated with: kill -9 <> I know that the kill ...
1
vote
0answers
118 views

UBUNTU 17.10 kill my notebook ASUS K56CB [closed]

ubuntu 17.10.1 during setting BIOS injured on my notebook of ASUS K55CB. That will order to do me now?
3
votes
1answer
1k views

Zombie process: sd_cicero, Ubuntu 16.04

When I followed the instructions in this question to find zombie processes, I found this process Z Jan02 0:00 [sd_cicero] <defunct>. When I try to find its parent process, I get this: ...
4
votes
1answer
1k views

How to kill specific java process?

ps -aux | less displays java -jar /var/appname.jar Now I'm killing it by killall -9 java But if there is also another java process java -jar /var/anotherappname.jar how to kill only the first one?...
1
vote
1answer
82 views

Problems with deleting user

I have problems with deleting a user on my Ubuntu terminal. I log in as root and type: # deluser mn1 userdel: user mn1 is currently used by process 21106 /usr/sbin/deluser: `/usr/sbin/userdel mn1' ...
0
votes
0answers
1k views

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

during the update to version 16.04.3 there was a power failure and now, even when I boot from recovery mode, I run into this error (photo 1). I can run Ubuntu from the USB-stick, but I am not offered ...
1
vote
1answer
2k views

How do I kill redshift?

I have installed redshift using apt-get. I started it up in a terminal window, and then accidentally killed the terminal. Redshift did not stop running itself. My screen is most certainly still under ...
1
vote
0answers
35 views

Is it possible to add a kill button to the window frame?

It would be very handy many times to have a kill button somewhere around the Close, Minimize and the Maximize buttons. Is it possible somehow or maybe there is a quicker way to kill an unresponsive ...
0
votes
2answers
2k views

How to force fully close tor browser

I am trying to close the tor browser by killing the process using command sudo kill pid but tor browser is not closing it is showing pop up Restarting Tor will not close your browser tabs ...
0
votes
1answer
43 views

How to kill process with the same name but ran in different directory?

in directory a I ran a Python process named basic.py and then I ran another Python process in directory b named basic.py too. And I want to kill the process ran in directory b, however when I used ps -...
0
votes
1answer
158 views

How to properly kill a background .sh script that keeps calling something else without “killing myself”/killing all my processes?

I'm logged into a remote server (server is CentOS, I'm on Ubuntu). I executed the following command: nohup bash script.sh > log.txt & script.sh contains, simplified, this content: for q (...
0
votes
1answer
85 views

How to make process “terminable” only by SIGHUP or SIGKILL?

I wrote a script that should kill stuck processes. At first, it tries the weakest SIGTERM, if it doesn't work, it tries SIGHUP, and if even that doesn't help, it'll do a SIGKILL. Now I want to try if ...
1
vote
3answers
167 views

Networked programs refuse to be killed

I recently upgraded my PC to Ubuntu 17.04 (about a month ago) and so far, I really like it. There's just one issue which keeps happening (3 times so far) that is getting REALLY annoying, and I just ...
3
votes
1answer
15k views

How do I close a program from the terminal

Suppose for example vlc media player is running and some directory is also opened in file browser. Now I want to close either the file browser or vlc. One way can be to just click on the cross ...
0
votes
0answers
946 views

Can't kill process and uninstall package

I had some problems: couldn't remove packages properly and eventually I did rm -rf to directories of Virtualbox. Now I want to install Vitualbox again, but can't because system tells that virtualbox ...
1
vote
2answers
3k views

How to kill tabs without closing the tabs or killing the browser itself in chromium 58

In versions prior to 58, a killall chromium-browse[r] was sufficient to kill all tabs while leaving the browser chrome intact. How can this behavior be replicated for the new version of the browser? ...
2
votes
2answers
2k views

ssh login and kill process

I want to ssh on a remote machine and kill all java process on that machine. I have authorized this machine to ssh on without password so I use command: ssh remote "kill -9 `pgrep java`" but I got: ...
0
votes
1answer
850 views

What can I do when Ubuntu is stuck?

I used to work with window in the past, and when Windows was stuck (cursor doesn't move or respond to clicks, for example), I could just clicked Ctrl+Alt+Delete, open the task manager and end the task ...
0
votes
3answers
141 views

Bracket Isn't Closing

I've installed Brackets (Code Editor by Adobe) on My Ubuntu 16.04 machine using an unofficial PPA from webupd8. Everything was okay but after installing few bracket modules and a fresh reboot, Bracket ...
1
vote
1answer
673 views

Stopping a .py file from running in background using kill -9 doesn't work [duplicate]

I have a .py file running in the background, invoked with: python file.py & Now I try to stop it as using: $ ps -fA | grep python root 31032 1 0 14:41 ? 00:00:00 python home/...
3
votes
1answer
555 views

How to close a pop-up window that don't want to be closed?

I am using a Ansys Fluent software and a small pop-up window "Messages" pops up in front of my main window "Meshing" (a print screen of the image is here). I can't close the pop-up window by clicking ...
0
votes
1answer
164 views

“bash” process does not die

A process with name (command) "bash" is taking about 100% CPU power. When I use the kill command to kill it I don't get any error messages but it nonetheless doesn't die. It doesn't belong to root. ...
0
votes
1answer
532 views

Can't kill processes of a user

One of the users of our server managed to hang his xRDP connection somehow. Now he can't connect any longer. Each time he tries to connect, he gets a blank black screen. I figured this is due to some ...
1
vote
1answer
860 views

OOM-killer is invoked for no reason Ubuntu 16.04

I seem to be having a strange problem with oom killing processes for no reason. This is an Ubuntu 16.04 machine which is up to date, with kernel 4.4.0-62-generic and running 3 VMs and BackupPC with ...
1
vote
1answer
843 views

Processes NetworkManager, wpa_supplicant, dhclient immediately respawn when I try to kill them [duplicate]

After I try to kill a process (speaking of NetworkManager, wpa_supplicant, dhclient) like this kill -9 PID (also tried -1 and -15), it reruns automatically... How can I kill it and prevent it from ...
1
vote
1answer
398 views

How to use system command in a perl script with sudo?

I would like to use this in my perl script: sudo killall -HUP tor would this work?: system echo sudo killall -HUP tor Also how would I get around having to authenticate when running the script/...
3
votes
2answers
2k views

Kill a process over SSH by finding Process ID

I want to write a script that let's me kill a process by feeding a command to the script. I've most of it working but my issue is currently I need to ssh in twice to kill it 1) To get the process ID ...
3
votes
2answers
717 views

Is it safe to kill the “gnome-system-monitor” process from inside the system monitor?

I know that this may sound like a stupid question, but for the sake of curiosity, would it be safe to kill the gnome-system-monitor process from inside the system monitor program? I've asked this ...
0
votes
1answer
1k views

How to kill zombie process keeping its parent alive? [duplicate]

I am doing printing in .net core framework. For printing every label, I start a process. So for 100 labels, it creates 100 zombie process. The zombie process gets removed from the process table, ...
3
votes
1answer
806 views

Kill all the other instances of a running process except the very first one

I am working on a project in which I need mplayer to run several instances in order to create voice-over-music real-time mixing from two files. So, the music is constantly playing at 90% volume (...
0
votes
1answer
298 views

Is there an easy way to kill a 'play' job (from sox)

I use the play utility from the sox package to generate noise so that sirens won't wake me up at ungodly hours! However play runs like a daemon, meaning that pressing Ctrl+C will not stop it. So I ...
1
vote
2answers
448 views

Running script was killed

I was running a script on 30k images and suddenly it was killed. What could have caused this? mona@pascal:~/computer_vision/deep_learning/darknet$ ./darknet coco test cfg/yolo-coco.cfg yolo-coco....
1
vote
2answers
1k views

Run another command when my script receives SIGKILL signal

Suppose I run a script $ nohup ./myscript </dev/null >/dev/null 2>&1 & and then kill it $ pkill myscript How can my script be designed so that when it receives the SIGKILL signal,...
3
votes
2answers
996 views

Bash script to open evince (pdf reader) and close terminal

I'd like to write a script that, among other things, opens a PDF file with evince, and closes the terminal. So far I've got: evince & sleep 2 kill -9 $PPID but evince closes when the terminal ...
2
votes
0answers
476 views

Ubuntu 16.04 /bin/kill bug?

I recently installed Ubuntu 16.04 on the virtual machine using VMware. To test my MapReduce code, I also installed hadoop 2.7.3 and setup a single node cluster. When I execute MapReduce algorithm, ...