I have to use Google chrome while running the terminal in the background. In fact if I press ctrl+c it shuts down with the Google chrome too. Why is it happening? Is there any way I can resume Google chrome after closing the terminal?If I try to close it, Google chrome gets closed too.
1 Answer
You can use this command:
<your_app> & disown
In this case:
google-chrome & disown
Explanation:
In the bash shell, the disown builtin command is used to remove jobs from the job table, or to mark jobs so that a SIGHUP signal is not sent to them if the parent shell receives it (e.g. if the user logs out).
-
1
-
so should I open another terminal for this command or should I just type this in the same terminal that is controlling google chrome?– user397790Apr 14, 2015 at 9:24
-
ctrl+c
it will terminate the application