This question already has an answer here:

I just want to open a website link using the terminal in ubuntu. I am using the following code:-

firefox https://anylink.com

the problem is that once this command is executed, the terminal does not get free until and unless I close mozilla or press ctrl+c. I want to execute few more codes after the browser gets opened. What should I do???

marked as duplicate by steeldriver, jasonwryan, jordanm, Braiam, Anthon Feb 22 '15 at 5:52

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Add a & character to the end of your command, this will free the terminal after the command executes.

So you'd use

firefox https://anylink.com &


I read the fine manual, and the following worked for me:

thufir@doge:~$ firefox -new-window http://www.example.com/

(process:4094): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed

there's also new-tab if that works better for you.

man firefox was useful.

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