Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I launch certain programs from the command line like eclipse and document viewer in 11.10 it spews a load of information that seems inconsequential.

Also when they are run in the background they sometimes continue to produce output to the terminal which I am currently working on, which is irritating.

I would like them just launch and keep the background stuff in the background. My reasoning is that if you launch these programs through the GUI (eg double clicking on an icon) these messages are never shown to me, so I don't need them in the command line.

share|improve this question

3 Answers 3

up vote 30 down vote accepted

If You can avoid writing stuff in the console depends on how is output from the program created. If it is streamed to default output, than it is just enough to do

eclipse > /dev/null

and no output should be made.

Also, to suppress error messages

eclipse 2&>1 >/dev/null

But if they do it somehow differently that it might be a problem to stop it from writing in the console.

if possible use the solution given by MuffinStateWide

share|improve this answer
Might wanna make that eclipse 2&>1 >/dev/null to get rid of stderr. The default only redirects stdout. And there is no "different" way to do it, if you purge both stdout and stderr into the nether, there'll be no output. –  TC1 Jan 25 '12 at 14:32
@TC1 In principle, a program could reopen /dev/tty and print the output there. In practice, GUI programs won't do that. –  Random832 Jan 25 '12 at 14:58
@Random832 Well in principle, I'd suggest piping that stderr to /dev/dsp or aplay for extra lulz... :) But you're right, in theory it could be done, in practice -- I'd probably at least write a rather impolite email to the guy who did that. –  TC1 Jan 25 '12 at 15:52
@TC1 "2>&1 >/dev/null" will redirect stdout to the bit bucket, but stderr will not be redirected. You need to reverse the order and do: ">/dev/null 2>&1" –  William Pursell Jan 25 '12 at 16:56
you can also do just: eclipse &> /dev/null. That catches both stdin and stderr to the redirect point (in bash) –  warren Jan 25 '12 at 19:29

try adding --help as a command switch and look for "quiet" this should suppress the output , or just launch from GUI. and launch with the switch or find a way to suppress it via script

personally i launch from cli to get that output so im not sure its possible for all GUI apps.

share|improve this answer

Please go through below URL you will come to known what you want to do

Linux Tips - IO Redirection

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.