How to run example gedit without window (background mode)?
closed as unclear what you're asking by muru, TheWanderer, Parto, Pilot6, kos Mar 29 '16 at 9:49
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
If you're running an app from the command-line, it runs in "foreground" mode and occupies the current shell until it ends.
To put a currently-running "foreground" app into the background, (i.e. The window still runs, but the shell returns) you first have to pause the process by pressing the key combination CTRL+z.
This will tell you it has paused the process and return you to a command prompt:
^Z + Stopped gedit $
At this point, gedit will be frozen because it is paused. You can see the paused process by calling
$ jobs + Stopped gedit
And you can then put the process into the background by calling
bg %1 (or just
bg since it assumes the most recent process)
$ bg + gedit & $
As you see, gedit is now unfrozen, and the '&' indicates that it's running in the background.
You can shortcut all this messing about by simply adding the '&' to the end of the command you are calling, and it will return the new Process ID, e.g.
$ gedit myfile &  12882 $
For more information on process management, you might want to read one of the many excellent guides on the internet, such as this one: http://linuxcommand.org/lc3_lts0100.php