Questions tagged [killall]

killall - sends a signal to all processes running any of the specified commands.

killall sends a signal to all processes running any of the specified commands. If no signal name is specified, SIGTERM is sent. Signals can be specified either by name (e.g. -HUP or -SIGHUP ) or by number (e.g. -1) or by option -s.

If the command name is not regular expression (option -r) and contains a slash (/), processes executing that particular file will be selected for killing, independent of their name.

killall returns a zero return code if at least one process has been killed for each listed command, or no commands were listed and at least one process matched the -u and -Z search criteria. killall returns non-zero otherwise.

A killall process never kills itself (but may kill other killall processes).

Source:die net

34 questions
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
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
19
votes
3 answers

Kinder / gentler / subtler equivalent alternative to killall (e.g. "endall")?

How do I end all processes with the same name in a more gentle way than killall does? I don't want to interrupt the processes, but leave them time to properly quit. See also: How do I kill processes in Ubuntu? In System monitor, what is the…
12
votes
1 answer

Killall node not killing node process

I have the following output via ps aux | grep node: karlm 17551 1.4 0.7 1000592 93604 pts/2 Sl 09:54 0:01 node -r babel-register -r babel-polyfill src/index.js --config=c.json I try to kill this with killall node. It doesn't kill the…
12
votes
4 answers

Stop an application in bash after a certain amount of time

I am interested in running a bash script which starts an application (in this case VLC), run it for a certain amount of time and then stop it. I can get this application to start just fine, but it will not stop, using this…
SteveC
  • 253
8
votes
1 answer

Killing Netbeans

Sometimes I have hanged NetBeans on my Ubuntu system. How to kill it? aux |grep [n]etbeans gives too much id's in order to find correct one. killall java kills other java applications, but not NetBeans. How to kill NetBeans 8.2 ?
vico
  • 4,717
  • 23
  • 66
  • 89
4
votes
2 answers

Kick off all other users who are logged in?

I know if I type w I can get a list of all logged in users. I also know that killall -u USERNAME kicks all processes associated with the user USERNAME (including bash / their shell, their sshd process, etc). As far as I know this is how you're…
AJJ
  • 902
4
votes
1 answer

Can't Kill VLC until Restart

Sometimes, after I play some videos with VLC Media Player, it stops working and I can't use it or kill it. The icon still appears in the system tray. When I click it and press "Quit," nothing happens. I tried killall vlc and I also found the PID…
AFT
  • 1,687
3
votes
0 answers

temporarily stop Firefox to prevent battery drain

Firefox drains my batteries (bad habit of the lazybone), so I would like to STOP it for a while and then resume it again. I tried killall but without much success: $ ps h kpcpu -eo pcpu,comm | tail -n2 3.2 wget 35.7 firefox $ killall -i -s STOP …
xerostomus
  • 1,060
3
votes
2 answers

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; done . It displays the first file, but does not…
rivu
  • 636
2
votes
1 answer

Kill shutdown/poweroff command

What command does the system execute when "shut down the system" is pressed? Is it possible to kill that process with root?
ulovah
  • 119
2
votes
1 answer

Why does killall (sometimes?) needs to be applied twice?

Why does killall (sometimes?) need to be applied twice? Here's an example where a "double" killall is needed to end the process. When and why does a process needed to be killed "twice"? What happens under the bonnet?
2
votes
1 answer

Is sudo killall -u lightdm safe?

I realized that my server has many processes runned by lightdm: Can i killall processes from lightdm? Is sudo killall -u lightdm safe?
alvas
  • 3,027
2
votes
1 answer

Change Gsetting with script on Logout

System Ubuntu Raring Ringtail (13.04) from fresh installation. Purpose Main: Change gsetting (desktop wallpaper) with script on user logout. What's I've Done : (carefully read) I try to stop an application named variety (this one) on Logout that…
Abdillah
  • 666
1
vote
1 answer

Terminate GNU Parallel in Screen Session letting jobs finish

I'm running a GNU Parallel command on a screen session. Unfortunately, I did not put an "&" at the end of the command to push it to the background. Hence I do not have access to the command line on my screen session. I would like to TERMINATE…
Rmurphy
  • 245
1
2 3