How do I launch a URL in Firefox in the background

2019-04-27 04:41发布

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.

3条回答
Root(大扎)
2楼-- · 2019-04-27 05:22

In firefox's about:config page set preference:

'browser.tabs.loadDivertedInBackground' to 'true'.
查看更多
再贱就再见
3楼-- · 2019-04-27 05:27

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

查看更多
做自己的国王
4楼-- · 2019-04-27 05:43
firefox "http://www.google.com/" &

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

查看更多
登录 后发表回答