Mozilla firefox gives an option to reset it. Check the below images to ee how its done graphically;

enter image description here

enter image description here

I need to make a script where this can be done through bash. Can someone tell me the command which can do this?

share|improve this question

Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

/usr/bin/firefox -safe-mode

and then click on Reset Firefox.

enter image description here

share|improve this answer
    
This is what I want to do precisely... The things that follows after pressing "Reset Firefox", is what I want to accomplish. I don't want to manually click on "Reset Firefox". – linuxandunix Aug 6 '14 at 11:07
    
Why don't want to manually click on "Reset Firefox" if you don't mind me asking? – Mitch Aug 6 '14 at 11:39
    
Because he wants to reset firefox after user logoff or daily. In both cases, it would be better to have pristine copy of .mozilla folder. – Barafu Albino Aug 6 '14 at 14:55
    
@BarafuAlbino If that's that case, then yes. – Mitch Aug 6 '14 at 16:52
    
Hi Mitch, its as Barafu said. – linuxandunix Aug 7 '14 at 4:10

Just delete its folder, which is ~/.mozilla. Beware: this will clean Thunderbird too.

share|improve this answer
    
I wouldn't delete the folder, better rename it: mv ~/.mozilla ~/.mozilla_old – chaos Aug 6 '14 at 9:32
    
Better yet: ~/.mozilla/firefox – muru Aug 6 '14 at 10:01
    
If I move ~/.mozilla/firefox , won't I have to again import bookmarks. The "Reset Firefox" cleans the old data and restores all saved bookmarks and preferences. – linuxandunix Aug 6 '14 at 11:10
    
bookmarks should better be stored on sync account. Than you will enter sync credentials and get them all back. – Barafu Albino Aug 6 '14 at 14:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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