Ubuntu – Close terminal and avoid closing running program

command line

Possible Duplicate:
How to clean launch a GUI app via the Terminal (so it doesn't wait for termination)?

I start a program from terminal with the following command:

<program name> &

But when I close the terminal the program will close too. How to escape the program closing?

Best Answer

You can close the terminal by pressing Ctrl-D at the prompt instead of using the window controls. This will do what you want.