Possible Duplicate:
How can I close a terminal without killing the command running in it?
How to launch a GUI application (e.g. gedit) from terminal and detach it from there in one step?
Possible Duplicate:
How can I close a terminal without killing the command running in it?
How to launch a GUI application (e.g. gedit) from terminal and detach it from there in one step?
The & operator enables the application to run in the background. Use
nohup gedit
or
nohup gedit &
(the latter lets you use the terminal after launching gedit, just press return to send it to the background). Nohup dispatches the application completely from the terminal and session.
There are two steps involved. One is generally called "backgrounding" and the other "disowning".
& after the command. This sends the job to the background and allows your shell to continue running. The command you backgrounded is still running as a child process of the shell. You can see it in the list of shell jobs bu running jobs. You could run fg (or fb %N if you have more than one backgrounded job) to bring it to the foreground and send it things like CtrlC.disown %N where N is the job number. If you only have one backgrounded job this would be disown %1. This kicks the background job "out of the nest" so that it is no longer a child of the shell. You can then close the shell and the disowned program would keep running.Note: In ZSH you can shortcut the process of disowning by running command &!. The &! backgrounds and disowns in one step.
If you have already launched it, you can hit ctrl-z, enter bg and then disown. You will still get output from the application to the terminal though.