Questions tagged [kill]

used in bash/shell to kill process

In computing, kill is a command that is used in several popular operating systems to send signals to running processes in order to request the termination of the process.

In Unix and Unix-like operating systems, kill is a command used to send a signal to a process. By default, the message sent is the termination signal, which requests that the process exit. But kill is something of a misnomer; the signal sent may have nothing to do with process killing.

The kill command is a wrapper around the kill() system call, which sends signals to processes or process groups on the system, referenced by their numeric process IDs (PIDs) or process group IDs (PGIDs). kill is always provided as a standalone utility as defined by the POSIX standard. However, most shells have built-in kill commands that may slightly differ from it.

enter image description here

Source: [Wikipedia] - kill (command)

224 questions
361
votes
7 answers

What is a process, and why doesn't it get killed?

The chrome browser was not responsive and I tried to kill it, but instead of disappearing the process had at its right, and didn't get killed: What is for a process and why it doesn't it get killed?
262
votes
11 answers

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 those spinning processes. I don't have authority…
djangofan
  • 3,874
90
votes
10 answers

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? Anything similar to Ctrl + Alt + Del of windows?
t3ch
  • 2,783
57
votes
4 answers

How do I turn off automatic updates COMPLETELY and FOR REAL?

Running Ubuntu 18.04 on x64. I need to COMPLETELY turn off the "automatic updates reminder" stuff on my Ubuntu system. The problem is that the machine is doing some unattended processing and the updates reminders interfere with it. A while back, I…
53
votes
5 answers

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 process (I tried ktorrent too. Same behavior). Finally…
Pedram
  • 5,811
52
votes
5 answers

How can I see background process in Ubuntu? And kill unnecessary processes?

In Windows by using Task Manager we can see how many .exe files are running. Also in command prompt we use tasklist command to see processes. In ubuntu how can I see all processes and kill unwanted processes?
Madhav Nikam
  • 2,967
41
votes
5 answers

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 process. It is a Java process and it is easy to…
nkint
  • 2,065
40
votes
5 answers

What process of Google Chrome to kill to close window from terminal?

Google Chrome usually has 8 to 9 processes running, even though only one window is open. Which one of these processes do I kill to safely close the Google Chrome window? Here is my ps -Af | grep chrome output: 1000 2706 1 2 23:01 ? …
40
votes
3 answers

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?
hytromo
  • 4,891
38
votes
8 answers

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 could use ctrl-alt-del to get to the task manager to…
Kobur
  • 381
36
votes
6 answers

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 …
mreq
  • 4,932
32
votes
5 answers

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 really broken - after not much tinkering it consumed…
maxschlepzig
  • 3,734
29
votes
3 answers

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 5 instances in memory so I decided to use the…
Meer Borg
  • 5,003
26
votes
4 answers

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 cannot find the applications PID in the running…
mcbetz
  • 3,099
25
votes
9 answers

How to kill only if process is running?

Currently, I use a line like this in my sh script file: kill $(ps aux | grep -F 'myServer' | grep -v -F 'grep' | awk '{ print $2 }') But I wonder how to call it only if process (myServer here) is running?
1
2 3
14 15