used in bash/shell to kill process

learn more… | top users | synonyms

36
votes
3answers
1k views

Why does this 'kill' command log me out of the computer?

The following command signs me out (do not run this command): kill -9 -1 I don't understand why. Can someone explain this to me?
28
votes
6answers
42k views

Is there any way to kill a zombie process without reboot?

Is there any way to kill a zombie process without reboot? Here is how it happened: I want to download a 12GB file using torrent. After adding the .torrent file, transmission turned into a zombie ...
20
votes
8answers
30k views

How to kill applications

I have been playing around with Ubuntu installing new themes and and docks. Sometimes during the installation, whole screen just hangs. What is the best way in Ubuntu to Kill a process/application? ...
20
votes
2answers
20k views

What is <defunct> for a process and why it doesn't get killed?

The chrome browser was not responsive and I tried to kill it, but instead of disappearing the process had <defunct> at its right, and didn't got killed: What is <defunct> for a process ...
17
votes
6answers
14k views

Shell script to -9 kill based on name

Is there a way (perhaps a script) how to automate this process: petr@sova:~$ ps -ef | grep middleman petr 18445 2312 1 12:06 pts/2 00:00:01 /home/petr/.rvm/gems/ruby-1.9.3-p362/bin/middleman ...
17
votes
7answers
79k views

How do I kill processes in Ubuntu?

How do I kill all processes running by my own non-root account? I have some spinning smbd processes that I caused from my windows machine and so I telnetted into the linux server and I want to kill ...
11
votes
3answers
33k views

How to deal with a frozen screen? [duplicate]

Possible Duplicate: What should I do when Ubuntu freezes? My OS is Ubuntu 12.04. Sometimes the screen suddenly becomes frozen, except that the mouse can move around. I have no choice but to ...
10
votes
2answers
1k views

How to empty the queue of pending notifications?

I have an application that went completely crazy and sent (it seems like) hundreds of notifications to the notification daemon. Now I've been getting notification bubbles for the last few minutes and ...
8
votes
2answers
1k views

How to kill applications like on Windows?

I looked it up on google but I didn't find anything helpful. Anyway, I was playing Crysis 2 (with PlayOnLinux) and the game crashed, but I could't kill the process, I tried Ctrl+Alt+T but nothing but ...
7
votes
2answers
3k views

How can I find out, which jar-files java is currently running (and their PIDs)?

I have a .jar file which is notorious for malfunctions. When a malfunction occurs, only a restart helps. I have a way to detect that malfunctions (reading the log-file of said .jar) So I want to write ...
6
votes
2answers
3k views

How do I kill a kernel thread? And do I really want to do so?

As I've learned from this question, [bracketed] processes listed by the ps aux command are kernel threads. So is there a way to kill them from the command line? If not, I guess the reason for that is ...
5
votes
3answers
14k views

Kill Java processes

I'm working on a computationally heavy code that - for now - crashes a lot, but I'm still working on it :) When it crashes, I can't close the GUI window; I have to open a shell and kill -9 the ...
5
votes
1answer
228 views

Oneliner command to use kill given tcp port number instead of PID?

I often do e.g. sudo netstat -lpn |grep :8088 view the output tcp6 0 0 :::8088 :::* LISTEN 11189/java and then sudo kill -kill 11189 I'd ...
5
votes
1answer
455 views

How can I *disable* Ctrl+Alt+Backspace?

Building on a question from 2010 (3 years ago) I'm trying to achieve the exact opposite: I want to disable the Ctrl+Alt+← keyboard shortcut to kill the X server. For me, it appears to be disabled in ...
5
votes
2answers
2k views

How to get rid of Transmission zombie process? [closed]

Problem: I was downloading a file over Transmission when I noticed that the Transmission window was grayed out and not responding. On clicking it, Ubuntu (10.04) asked to force-close which I did. What ...
4
votes
4answers
7k views

How can a frozen/locked-up program/app be closed?

I am using Ubuntu 12.04.1 LTS Desktop. My son and I are playing games on GCompris and several modules freeze/lockup. When it does, I don't know how to close the program. I know in Windows I ...
4
votes
1answer
745 views

Suspending a process and resume after a system shutdown/reboot

Under Ubuntu you can suspend a process by kill -STOP [process ID] and resume by kill -CONT [process ID] But my question is, does this also work after a full system shutdown/reboot ? Will the ...
3
votes
3answers
258 views

Killing several processes

I have one command (/usr/lib/R/exec/R pathtoDifferentFiles) being executed with many different arguments (file names). Looking at htop, I see at least 30 processes created, I want to kill all of ...
3
votes
1answer
2k views

How do I enable Ctrl-Alt-Backspace to kill the X server? [duplicate]

Unfortunately, there's still a need to kill the XServer from time to time. Since upgrading to Raring ctrl+alt+backspace is disabled and I can't find this option in the keyboard settings any-more: ...
3
votes
5answers
11k views

How to kill non-responsive GUI task under Unity?

I am searching for a newuser-friendly way to kill non-responsive GUI applications under Unity. I looked over the shoulder of a new Unity user who tried to use gscan2pdf - and gscan2pdf seems to be ...
3
votes
1answer
249 views

pkill not killing

I have a Script named PirateRadio.py That I am writing a script for. I need to kill and reload the script. Possibly with the same PID. I thought SIGHUP was a sure thing. when i run #pkill -1 ...
3
votes
1answer
105 views

disable prtscr+alt gr+e , accidentally killing session

when i press the key combination: altr gr + prtscr + e my session gets killed, either x or a tty. i discovered this by (repeated) accident... this was not an issue for me before. my current laptop ...
3
votes
2answers
107 views

starting and killing evince process in a loop

I have certain PDF files. I want to inspect each of them for 20 seconds. The way I was trying to do that is like following: for file in *.pdf; do echo $file; evince $file; sleep 20s; killall evince; ...
2
votes
4answers
3k views

How to kill the ubuntuone daemon?

The ubuntuone daemon is eating 100% of my CPU. I contacted the ubuntuone support but while they are looking for a solution, I'd like to kill it so it doesn't disturb my work. I can't kill -9 it, as ...
2
votes
2answers
76 views

Killing tor causes all the present and future windows to loose the frames

Almost, every time if sudo pkill -f tor which runs as root on startup. I loose all the frames(frameless) of my current and future windows. And I have noticed the Ubuntu tends to behave strangely(can't ...
2
votes
5answers
4k views

Stop Ubuntuone-syncdaemon from running in background automatically

Is there a way to stop ubuntuone-syncdaemon automatically (and all other Ubuntu One related processes) from running in the background after I quit the Ubuntu One app? Like when you quit Dropbox, it ...
2
votes
1answer
53 views

Is there any reason to use 'kill' instead of 'killall'/'pkill'?

Starting my adventure with Linux a couple of years back, most tutorials and older, more experienced colleagues suggested using the command 'kill', sort of like a replacement for the Process Manager ...
2
votes
2answers
312 views

How can I kill an application after a specific amount of time? [duplicate]

Possible Duplicate: Automatically close application after custom time? I want to stop/kill my totem player after a specific amount of time. Can it be done?
2
votes
2answers
596 views

What is the difference between using System Monitor and Terminal to kill a process?

When I shutdown my minecraft it never closes all the way, I have looked for a solution but found none. After awhile I gave up and decided that I would manually kill it when I wanted to close it. If I ...
2
votes
1answer
931 views

Killing processes from Java

I have created a Java application that can start processes and capture their PIDs so that the application can monitor the process. The user may later choose to kill the whole process tree (session). ...
2
votes
1answer
439 views

How can I start a process with a different name?

Basically I want to dynamically start some processes which may create their own children processes, also I want to kill a certain group of processes I just created whenever I want. One way I could ...
2
votes
0answers
18 views

Limiting physical memory of specifc process [duplicate]

Performing research, I am interested in limitting the Physical Memory per specific process. My requirements: Limit physical memory consumption for specific program In case of crossing limitation - ...
2
votes
0answers
2k views

How to kill compiz that won't die? [closed]

I believe the problem may be related to this question. I logged twice to guest account. The first time I've chosen unity and something went wrong. The other time I used gnome shell, it worked for a ...
2
votes
1answer
418 views

Can i automatically kill any application that uses more than a certain percentage of the CPU and/or RAM?

What i need from my computer, now that it's summer at least, should never use a lot of resources - when applications do so it's because of some kind of bug or memory leak. Is there any way to ...
1
vote
2answers
6k views

How to force any program to close?

Sometimes programs tell me I can't start it because there is already another instance of it running. Best example would be Firefox and Chromium, but this problem accounts for many applications. I ...
1
vote
2answers
2k views

killall doesn't kill all and rarely kills, what is the command for then?

I occasionally use the killall command to kill processes. The reason why I say ocassionally is that in some cases it hasn't worked for me. A recent example was with thunderbird where there were about ...
1
vote
4answers
393 views

When piping input from one program to another, what happens to the original program if the program receiving output is killed?

I am piping the output of a program like this using bash: program1 | program2 If program2 is killed somehow (in my case by a PHP fatal error), what happens to the instance of program1?
1
vote
3answers
140 views

How to stop killing browser by terminal

I am using Ubuntu. my friend is killing my browser from his ubuntu machine using terminal. He knows my password. Do let me know any way to stop this killing process. I know that changing the password ...
1
vote
1answer
318 views

Doesn't kill the process

I have to kill mysqld process but after it had killed the same process constituted in a different way as a new pid number. e.g : ak@ak-EasyNote-TM98:~$ ps -aux|grep mysql mysqld start mysql 6894 ...
1
vote
1answer
304 views

Kill a cron job from cron

I want to start the ubuntu update at night because internet is free at that time. and then kill the process in order to ensure that it does not download anything after 7:00 AM. Is there any way to ...
1
vote
2answers
377 views

Killing Subprocess in Ubuntu NOT the Parent?

I want to kill a process in Ubuntu. I have Java installed and Running JBOSS & Tomcat at background. I need to kill Tomcat after deployment but when I kill it JBOSS is going too. I had to use ...
1
vote
2answers
34 views

How to close all wifi password message windows at once?

I keep my computer on at night. During this time the router stops and starts multiple times. I have checked connect automatically to the connection. When I see the computer in the morning, I have the ...
1
vote
2answers
1k views

Skype Freezes Sporadically

I've been having the problem ever since I started using Skype on Ubuntu, some two years ago. I'm always thinking that they will fix it with the next update, but no. From time to time, it will randomly ...
1
vote
1answer
140 views

Xorg becomes unkillable at 3AM

Most nights, some time in the hour of 3AM my xorg process will increase to 100% cpu and gpu load will also increase to 100%. The process also becomes unkillable. I cannot sudo kill -9 it or get back ...
1
vote
1answer
330 views

How to add the kill button in xfce4-panel 4.10.0 of Xubuntu 12.10?

When I was using Gnome 2, I had the option of add a kill button on the panel, but on xfce4-panel 4.10.0 this button is not an option, I think it's necessary add it manually, creating a new luncher. ...
1
vote
1answer
712 views

Fresh install of 12.04 Kernel panic

I am attempting to install Ubuntu 12.04 on my computer. After the Ubuntu splash screen, the computer throws up this error: sr 2:0:1:0: [sr0] Unhandled error code Kernel panic - not syncing: Attempted ...
1
vote
3answers
630 views

Kill a process at startup

So I switched to Gnome Shell on my 11.10 install. One annoyance is that whenever I insert a removable drive, nautilus opens the drive and at the same time gnome shell displays its popup. I discovered ...
1
vote
1answer
2k views

Unable to kill process with 'kill -9' whose PPID=1 and using 100% of CPU?

Direct Question: Flash under firefox 4.0, npviewer.bin, in KUbuntu 10.04 was running at 100% and I couldn't kill it. I tried: sudo kill -9 12996 sudo kill -15 12996 I logged in as root and ran ...
1
vote
1answer
284 views

How can I recover from a frozen app when connecting over VNC

I have a htpc running 10.10. It has no keyboard or mouse attached, so I connect over vnc for administration and manual tasks. This usually works fine but every so often an app running in fullscreen ...
1
vote
0answers
28 views

JBD2 has a Fork Bomb? Kill -9 Wont Work (Ubuntu 12.04)

This process is writing to my disk at 10MB/sec and I cant kill it. I think its a bug/fork bomb in Ubuntu 12.04. See: root@beb:~# ps -efaww|grep jbd2 root 355 2 0 Jun23 ? 00:31:13 ...