4

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.

5

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

firefox --new-tab --url about:newtab
  • The correct command is firefox -new-tab about:newtab – vanadium Mar 7 '19 at 19:14

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.