0

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
  • if you start the chrome from the terminal and if you press ctrl+c it will terminate the application
    – bolzano
    Apr 14, 2015 at 9:13

1 Answer 1

5

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).

Source

3
  • 1
    The semicolon prevents it to work, it's just <your_app> & disown
    – kos
    Apr 14, 2015 at 9:23
  • so should I open another terminal for this command or should I just type this in the same terminal that is controlling google chrome?
    – user397790
    Apr 14, 2015 at 9:24
  • Use the command to start Google Chrome.
    – A.B.
    Apr 14, 2015 at 9:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy