2

If I open an application from the command line, say Firefox, the application runs as long as the terminal stays open. Closing the terminal's tab will close the application.

Is there a way to open an application from the terminal such that the application will stay open even after closing the terminal?

1 Answer 1

3

You can open in the background with the addition of an &; disown:

$ firefox &; disown

(Thanks for the correction, I missed the zsh part)

3
  • 1
    This is a partial solution. The application will run in the background, yet you won't be able to close the terminal session - zsh: you have running jobs. @nerdwaller
    – John
    May 18, 2013 at 13:15
  • 1
    make that firefox &; disown, and it will do what they want
    – demure
    May 18, 2013 at 13:16
  • As you are using zsh, benefit from its elegance ;)and just use firefox &!
    – mpy
    May 20, 2013 at 16:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .