How To Close Firefox

 Posted admin
How to close firefox system

How To Close Firefox Running In The Background

Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.

I keep getting this error message when I try to shut down Firefox. It does not appear to be running on my desktop but my guess is that it is being used by another program in the background (to send an Error report, perhaps). How can I force Firefox to completely close?

Hi, try holding down the Shift key when you start Firefox to start in Safe Mode. After the download finishes, close all Firefox windows (or open the Firefox menu. Enable or Disable Automatic Updates in Firefox Posted on March 18, 2018 by Mitch Bartlett 35 Comments I don’t like Firefox constantly updating the version or the Add-ons all by itself at startup without my knowledge.

TRiG
1,4751 gold badge14 silver badges32 bronze badges
Peter SchriverPeter Schriver

2 Answers

How To Close Firefox

To force completely close Firefox use:

pkill firefox

from terminal.

AchuAchu
16.4k13 gold badges64 silver badges99 bronze badges

In a terminal execute:

$ killall firefox

Firefox Is Already Running Linux

or, in some old versions,

$ killall mozilla (... and press the tab key to complete)

Close

That will kill firefox. If the problem appears again, do the same, but if the problem happens almost always then you must have a deeper problem.

Robert VilaRobert Vila

Not the answer you're looking for? Browse other questions tagged 12.10firefox or ask your own question.

I dont want to kill browser process, I just want to shut down the browser from command.

tetrapacktetrapack

3 Answers

For closing the browser gracefully, wmctrl should do the trick:

you may need to install it first with

see the wmctrl man page for more info

GrimtechGrimtech

If you wish to 'entirely' close Firefox 'gracefully', try using xdotool. By gracefully, i mean closing the program, not killing it. By entirely, i mean 'quiting' Firefox, closing all windows, all at once. wmctrl will gracefully close a single Firefox window, but will not close all windows.

Create the following script:

That should do it.

ZyMOSZyMOS

You cannot close a tab, but you can close the browser using one of these:

terdonterdon
42.8k9 gold badges94 silver badges141 bronze badges

Not the answer you're looking for? Browse other questions tagged ubuntucommand-line or ask your own question.