When I type firefox in terminal, it starts Firefox but the terminal "hangs".
What is happening behind the scenes?
Can I open Firefox from terminal and keep on using the same terminal tab for other things without closing Firefox?
The terminal locks when you are running an application from it as long as the application is running. With the ampersand (&) you can start the application in the background and still use the terminal. Type:
user@host:~# firefox &
To start firefox in the background. Output of the application will still be in the terminal.
Or, if firefox is already running you can do this:
Type:
jobs
You should see your jobs like :
[1]+ Stopped firefox.
Type:
bg %1
(or number of your job)
firefox as root?
# indicate elevated privileges. (I didn't think you did, btw)
Use nohup firefox & to run firefox from terminal and you can use terminal for other process, if you close terminal, firefox will not quit.
If you get error like Another instance is running then use nohup firefox -P --no-remote & and create a new user profile and browse.
Use this command to run firefox in background as well you can exit the terminal but still the firefox will run.
hussain-->~#nohup firefox &
When you simply open the firefox then it will not return the prompt after closing the firefox only it will return the prompt.
&after the command and it will run on background.&. How would you start firefox from the terminal if you had to and why?