LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   console usage for newbie (https://www.linuxquestions.org/questions/linux-general-1/console-usage-for-newbie-561987/)

fm_clau 06-15-2007 04:39 AM

console usage for newbie
 
hi, i am brand new in the linux department.
I run my programs from the console, but, my question is, if I have 20 programs running will I have to have 20 order-windows open in my main console window?. for example: user@local: > "program" and my rpogram runs, but, if i want to have my prompt back again without killing the program running what should i do?
I know I might sound quite an idiot but i am really at the very begining of learning linux.
Thanx a lot

avallach 06-15-2007 04:46 AM

You can run it in background by using & after program name..
For example
Code:

program &
, or use Ctrl + Z to get back to the command prompt example:
Code:

[sparks@krwawnik dsl]$ mc

[1]+  Stopped                mc

You will see sth like this
writing fg 1 will bring back mc

acid_kewpie 06-15-2007 04:47 AM

i'd suggest that you;re not really clear on what you're asking. what you seem to be asking (imo) is how to run multiple console based applications without a lot of terminals. in which case you can use tools like "screen" which allow detachable sessions to be set up, letting you reconnect to old sessions when you wish. if these programs aren't console interactive at all though, just stick "&" on the end of the command line and it'll run in the background and return you to a prompt immediately.

fm_clau 06-15-2007 06:27 AM

works
 
ah, thanx, thats what i was looking for


All times are GMT -5. The time now is 10:56 AM.