LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-15-2007, 04:39 AM   #1
fm_clau
LQ Newbie
 
Registered: Jun 2007
Location: Germany
Distribution: opensuse, openbsd, ubuntu, debian
Posts: 13

Rep: Reputation: 0
Question 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
 
Old 06-15-2007, 04:46 AM   #2
avallach
Member
 
Registered: Sep 2006
Location: Silesia
Distribution: Debian GNU/Linux 4.0, ArchLinux, OpenBSD
Posts: 190
Blog Entries: 2

Rep: Reputation: 31
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

Last edited by avallach; 06-15-2007 at 04:47 AM.
 
Old 06-15-2007, 04:47 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 06-15-2007, 06:27 AM   #4
fm_clau
LQ Newbie
 
Registered: Jun 2007
Location: Germany
Distribution: opensuse, openbsd, ubuntu, debian
Posts: 13

Original Poster
Rep: Reputation: 0
Smile works

ah, thanx, thats what i was looking for
 
  


Reply

Tags
console, prompt



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie - is there any software for monitoring internet usage? therealkilkenny Linux - Software 1 12-12-2005 05:21 AM
Newbie question about usage of mmap justin8086 Linux - Hardware 1 11-22-2005 01:10 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM
network usage monitoring via console & generic apps bkeating Linux - Newbie 1 11-12-2003 06:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration