LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Leave terminal free (https://www.linuxquestions.org/questions/linux-newbie-8/leave-terminal-free-721676/)

Felipe Reigosa 04-25-2009 06:26 PM

Leave terminal free
 
Hi guys, it's simple question but I can't find the answer anywhere.

How to open a file or program using command line and leave the terminal free? Every time I open a file using the command line I have to open a new terminal to do other things.

Thanks

Robhogg 04-25-2009 06:32 PM

Add an ampersand to the end of the line, e.g.:
Code:

gconf-editor &
... this pushes the job into the background (it runs in a sub-shell). If you have already launched the program, hit Ctrl-Z to stop it temporarily, then type bg and hit return to restart it in the background.

In each case, you will be given a job id and its process number. To get a summary of background tasks in a particular shell, run jobs. You can address each job by its number preceded by a %, e.g. kill %2 to terminate the second background job.

Felipe Reigosa 04-25-2009 07:05 PM

Thanks!


All times are GMT -5. The time now is 09:25 PM.