How to Restart Firefox from the Command Line

Users of Linux are more than likely used to seeing Firefox installed on their systems by default, and they might very well type the name of the program in a terminal to start it. The name of the browser in all lower case is enough to start it up, but some users might want to restart it while preserving their current session.

You’ll potentially need to make a change in the Preferences tab if you’d like to do this, but otherwise it’s extremely easy. Mozilla Firefox users might not be aware of the fact that they can also restart their browser from an internal command line that’s unrelated to the general bash shell most Linux users are familiar with.

Method 1: Restart Firefox from the Command Line

You’ll need to have a graphical Linux terminal open to work on this. Search for terminal on the Ubuntu Unity Dash line to start one if you’re using pure Ubuntu. KDE users and those using Cinnamon or MATE, such as in Linux Mint, can click on the Applications menu and then click on Terminal from the System menu. Xfce4 and LXDE users should have a similar experience. Nearly everyone can hold down Ctrl, Alt and T to open a window regardless of desktop environment.

At the command prompt, type killall firefox and push enter to kill all running instances of the Mozilla Firefox browser. Keep in mind that this will close out running browsers without prompting them to approve it, which might surprise users who’ve never tried it before!

Type firefox and push enter to restart the Firefox browser and keep the terminal window active. You can usually safely close the terminal window after you’ve done this. You generally won’t have to add an ampersand to keep the bash shell active, since modern Firefox implementations start from a script. These two commands are all you’ll usually ever need.

Method 2: Reloading Tabs When You Restart Firefox

In most cases, any tabs you had opened before you issued the commands will reload in the new session. However, if you find that Firefox didn’t reload them, then you can select the History menu and select Restore Previous Session. If you find that it’s not consistently loading the tabs, then you can either select the Edit menu and click on Preferences or type about:preferences in the URL line and push enter.

There’s a line that reads When Firefox starts: followed by what behavior the user expects when starting the browser. It’s set to “Show your home page” by default, but you can click on it and change it to “Show your windows and tabs from last time” to ensure that they always come back up. Of course, you can change this behavior however often you’d like by returning to this screen.

Method 3: Restart Firefox from the GCLI

When you’re running Firefox, hold down Shift and push F2 to open up the Graphical Command Line Interface or GCLI. It’s an internal command line that Firefox offers to power user. Type restart and push enter at this prompt to restart Firefox instantly.

This command also accepts a few command line arguments for when you want to restart Firefox in special troubleshooting modes. Typing restart –safemode will restart Firefox in Safe Mode and even give you a special troubleshooting dialog box. Don’t click on the Refresh option if prompted unless you absolutely want to preform a Firefox refresh operation. You can always close the dialog box and then restart Firefox from the Applications menu or from the command line if you want to cancel a safe mode restart without making any real changes at all.

If you’re afraid that you had some cache loading issues in the past, then typing restart –nocache will prevent the cache content from loading when you restart Firefox. This doesn’t actually clear the cache per say the way you might if you were cleaning out browser history, but rather leaves it in place and loads without it.

You’ll hopefully never need to make use of either of these options, and neither of them should be used loosely. Generally, you’ll only ever want to use restart with no other commands after it.


The post How to Restart Firefox from the Command Line appeared first on Android News.

Check Also

Download OxygenOS 5.0.8 for OnePlus 3 and OnePlus 3T

Latest Oreo-based OxygenOS 5.0.8 update for OnePlus 3 and OnePlus 3T starts rolling out. The OxygenOS 5.0.8 update fixes general bugs and brings system improvements and brings November 2018 Security Patch. Download OxygenOS 5.0.8 for OnePlus 3 and OnePlus 3T from below. The update is rolling out via OTA (over-the-air) and many users already getting OxygenOS 5.0.8 for OnePlus 3T. The update is incremental and rolls out in phase wise manner. You can wait for the OTA updates, or you can Update Oneplus 3/3T to OxygenOS 5.0.8 manually with below method. Download OxygenOS 5.0.8 for OnePlus 3 and OnePlus 3T from below. The new OxygenOS 5.0.8 for OnePlus 3T and OnePlus 3 fixes general bugs and brings system improvements. (Check the complete changelogs from below). We provide you the OxygenOS 5.0.8 OTA file which you can flash on your device. So if you want to update your OnePlus to the latest version then Download OxygenOS 5.0.8 for OnePlus 3 and OnePlus 3T from below. Check below what’s new..

Leave a Reply

Your email address will not be published. Required fields are marked *