Monday, April 29, 2024
35
rated 0 times [  35] [ 0]  / answers: 1 / hits: 99042  / 3 Years ago, thu, november 4, 2021, 2:11:34

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



How to kill all running instances of a program, e.g. Firefox?



I tried:



ps ax | grep firefox


But everything I can find is:



8193 ?        Rl     0:08 /usr/lib/firefox/firefox


I tried:



kill 8193


But I get:



Process not found


Actually, even when Firefox is running accurately, I cannot find its instances in ps.



What did I miss?


More From » command-line

 Answers
3

The easiest solution for a program that is not responding would be:



killall firefox


and if this doesn't work



killall -9 firefox


and if this still doesn't work, reboot, nothing else will.



For other killall options, see this article on Wikipedia: Link


[#33251] Friday, November 5, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
enincroscope

Total Points: 252
Total Questions: 124
Total Answers: 104

Location: Tajikistan
Member since Thu, Apr 14, 2022
2 Years ago
enincroscope questions
Thu, Jan 20, 22, 08:33, 2 Years ago
Thu, Apr 7, 22, 01:09, 2 Years ago
Mon, May 16, 22, 09:08, 2 Years ago
;