Say I run an app from a terminal, but in some cases I want to close the terminal but hope the app keeps running.
Is there anyway to do so in Linux?
I just found that when calling an app via "exec APP", either would be closed if the other was closed.
Start the application with:
nohup your_application &
It will continue running after you exit the terminal.
If you use tmux or screen and start the your_application from inside that, you can reattach to the "output" after closing the terminal and opening another.
You can also run the app normally, then hit Ctrl+Z to pause it and run bg to background it and then exit the terminal cleanly.
Cleanly means by running exit, not clicking on the close button. If you kill the terminal in any other way, it will close the app.
This works for me on Cinnamon (and other DEs) and bash. It fails with zsh.
bgafter the Ctrl+Z (forgot to mention that). – terdon Jan 05 '14 at 15:49