I am trying to launch a GUI from Ubuntu Terminal but after GUI starts I would like the command prompt to return to $ prompt. Currently what happens it seems to be waiting at the prompt till GUI collapses. If I force it to return to the prompt using CTRL+C, the GUI is terminated.
If you add an ampersand to the end of the line, e.g.:
The GUI process will be run as a background job from the perspective of the terminal. Output will still go to the terminal, so you may want to redirect that, but it won't wait for the GUI program to terminate before giving back a prompt.
You can suspend a process that you started in the foreground (i.e. normally) by hitting Ctrl-Z (in the terminal), and you should get a number in brackets and message saying "Stopped" and the command printed to the terminal, for example, for
If you then type
To put a process back in the foreground, use
Note that if you quit the shell, things you've put in the background will still get killed -- to avoid that, use the