Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-19-2006, 09:16 AM   #1
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Rep: Reputation: 30
simple terminal question


I've been wondering how to do this :

if I open for example, amule via terminal, it writes it output on terminal, etc...
but I cannot continue working in the same terminal without closing the amule via CTRL+C.

so how can I do a command something like kaffeine *.avi (or amule) and continue working in the same terminal without viewing the errors/whatever... is there a silent mode for every executeable program?

also, how can I use the screen command, I've done man screen, but I need some examples, and why it's usful.

Old 05-19-2006, 09:19 AM   #2
Senior Member
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,518

Rep: Reputation: 99
whatever &

Don't know the difference.
Old 05-19-2006, 09:32 AM   #3
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Rep: Reputation: 39
Old 05-19-2006, 10:23 AM   #4
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
using the & will send the process to the background and run it.

you can recall it to the foreground with
Old 05-19-2006, 10:29 AM   #5
Registered: Jul 2003
Distribution: Slackware
Posts: 84

Rep: Reputation: 15
Also, you can use Ctrl-z while a program is running on the terminal to background it. This will present you with your prompt again and the program is still running. You can foreground it again (bring the output of the program back to the screen) with the fg command.
Old 05-19-2006, 10:45 AM   #6
Senior Member
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
using screen is another solution. run 'screen' before running the program which puts the output in a newly created virtual terminal. You can detach with 'ctrl+a' + 'ctlr+d' and reattach with 'screen -r'. This has some other benefits then just placing something in the background. 'man screen' for more info.

Old 05-19-2006, 10:47 AM   #7
Registered: Jan 2005
Location: Atlanta, GA
Distribution: Gentoo, Slackware
Posts: 217

Rep: Reputation: 31
Ctl-Z does not move the program to the background, it suspends it, meaning it stops running. You can have it run in the background with the bg command (and you'll need to specify a job number if there are multiple suspended programs).

Also note that using & will not really free up your terminal if the program in the background still writes to stdout (try running something like ls & and see what happens). The stdout/stderr will need to be redirected to /dev/null or a file if you want your terminal session undisturbed.

As for screen, try googling "GNU screen" to get some opinions and tutorials. I myself find it extremely useful, especially when remotely accessing my desktop at home.
Old 05-19-2006, 01:37 PM   #8
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
Thanks guys!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Terminal question itz2000 Linux - Newbie 2 10-01-2005 03:26 PM
Ubuntu Fluxbox simple question, simple answer? generallimptoes Linux - Software 3 09-26-2005 03:03 PM
Simple terminal question TomalakBORG Linux - General 2 03-23-2005 09:33 PM
Installing Programs - A simple question from my simple mind jmp875 Linux - Newbie 6 02-18-2004 10:03 PM
simple question seeking simple answer enzo250gto Linux - Newbie 1 10-27-2001 05:08 AM > Forums > Linux Forums > Linux - Newbie

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

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