I want to open a new tab in an existing Firefox instance through bash. Older answers point towards the -remote command line option, but this switch has been depreciated since Firefox 39. The new way to accomplish this is by using the --new-tab option:

firefox --new-tab

However, on Ubuntu this opens a new window instead.


What's completely undocumented is that Firefox expects a --url parameter and will launch a new window otherwise. If you don't want the new tab to navigate to a url, give about:newtab as the url parameter.

firefox --new-tab --url about:newtab
  • 1
    The correct command is firefox -new-tab about:newtab – vanadium Mar 7 '19 at 19:14
  • This answer is hard to read because you're using incorrect grammar, it's a simple fix just change "an url" to "a url"... – user535764 Jun 12 '20 at 13:34
  • @TheresaLane i rejected your edit because you changed it to "otherwise it will launch a new window otherwise" which is even more confusing in my opinion. I've repaced the "an" with "a" now – Boltgolt Jun 13 '20 at 14:09
  • You could have just fixed it lol 😂😂😂 – user535764 Jun 13 '20 at 14:31
  • @TheresaLane i can't fix an edit, only accept or reject it – Boltgolt Jun 14 '20 at 15:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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