Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to reset Firefox from the commandline (without a mouse) on Linux?

  • 6 replies
  • 5 have this problem
  • 387 views
  • Last reply by cor-el

more options

I use Firefox for automated screenshots in a xvfb-virtual desktop. There is no mouse. So I need to reset Firefox from the commandline. Uninstall an re-install leads to the "reset-Window" again. I use Ubuntu 13.04 Server-Edition.

I use Firefox for automated screenshots in a xvfb-virtual desktop. There is no mouse. So I need to reset Firefox from the commandline. Uninstall an re-install leads to the "reset-Window" again. I use Ubuntu 13.04 Server-Edition.

Chosen solution

Otherwise, without a keyboard and mouse, you can just reinstall and delete the ./mozilla folder.

Read this answer in context 👍 2

All Replies (6)

more options

firefox -safemode or -safe-mode

then a new window should show to enter safe mode or Reset, hit the right keyboard key, and press enter on "Reset Firefox". No mouse needed.

more options

XP

   Open the Command Prompt:
       Windows Vista: Click on the Start Menu, click on All Programs, click on the Mozilla Firefox folder and click on Mozilla Firefox (Safe Mode).
       ff_vistastartmenu.png (+)
       Windows XP and Earlier: Click on the Start Menu, click on All Programs, click on the Mozilla Firefox folder and click on Mozilla Firefox (Safe Mode).
       ff_xpstartmenu.png (+)
   In the Firefox Safe Mode window, check the Reset all user preferences to Firefox defaults box and click on Make Changes and Restart.
   ff_safemode.png (+)
   Firefox will automatically restart and your settings will be reset to defaults.
more options

Thanks @Waka_Flock_Flame, but I have no keyboard either. It's an server and xvfb is just a virtual X-Server.

Thanks @Mohammed.samad, but I use Linux.

more options

Chosen Solution

Otherwise, without a keyboard and mouse, you can just reinstall and delete the ./mozilla folder.

more options

Thanks! Remove and install didn't help, but the trick is removing the ./mozilla folder. Thanks a lot!!!

more options

You may have to check the ~/.cache/mozilla/firefox folder as well that current Firefox versions use for the disk cache.