How do I launch a URL in Firefox in the background

2019-04-27 05:11发布

问题:

I use this command from the Terminal to launch a URL in Firefox:

firefox reader.google.com &

I put the ampersand at the end so that it won't put my Terminal window in the background, but Gnome just ignores this and opens a new Firefox browser window on top of the Terminal. Is there a way to launch Firefox behind the Terminal? What I want to do is continue working on the command line while the page loads, which sometimes can take a few seconds.

回答1:

In firefox's about:config page set preference:

'browser.tabs.loadDivertedInBackground' to 'true'.


回答2:

firefox "http://www.google.com/" &

This works for me just fine. Try using quotes and a full URL.



回答3:

firefox & -Will just open in background and you can surf. firefox --search "your text" & could directly give you the search results for to open in separate tab or windows just try --new tab or -- new windows followed by your url. you can find it just give firefox --help in terminal