Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

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

$ firefox &; disown

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

share|improve this answer
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 '13 at 13:15
1  
make that firefox &; disown, and it will do what they want –  demure May 18 '13 at 13:16
    
As you are using zsh, benefit from its elegance ;)and just use firefox &! –  mpy May 20 '13 at 16:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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