LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 07-02-2009, 01:51 PM   #1
barn63
Member
 
Registered: Jan 2006
Location: Macomb, IL
Distribution: Slackware 13.1
Posts: 152

Rep: Reputation: 17
Gentoo install video question.


This maybe a dumb question but I was watching a video on youtube for the Gentoo minimal install. The user who posted the video uses the command "emerge gentoo-sources 2>&1 >/dev/null". What does "2>&1 >/dev/null" do?


Here is the video I am referring to.
 
Old 07-02-2009, 03:26 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by barn63 View Post
This maybe a dumb question but I was watching a video on youtube for the Gentoo minimal install. The user who posted the video uses the command "emerge gentoo-sources 2>&1 >/dev/null". What does "2>&1 >/dev/null" do?


Here is the video I am referring to.
It redirects stdout and stderr to /dev/null. In other words, you won't see any output on the screen, not even errors. Not a good thing if there's an error that needs attention.

At most, I'd only recommend ">/dev/null". And only if you know what you are doing (tm). All the output to the screen takes some time, and for the kernel this is specially true because there are lots of files that needs to be unpacked. But a few extra seconds and some extra cpu usage don't justify the redirection nor the extra typing, in my humble opinion.
 
Old 07-02-2009, 04:14 PM   #3
d2_racing
Gentoo support team
 
Registered: May 2009
Location: Ste-Foy,Québec,Canada
Distribution: Gentoo
Posts: 115

Rep: Reputation: 17
In fact, you really need the error message and all kind of stuff that portage will send to the screen.

I will never use this kind of tweak.
 
Old 07-03-2009, 10:10 AM   #4
NathanZachary
Gentoo support team
 
Registered: May 2009
Posts: 21

Rep: Reputation: 17
Calling this a "tweak" scares me a little bit . Just to iterate what the others have said, don't redirect stderr unless you would like some problems later.
 
Old 07-21-2009, 03:55 AM   #5
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
Thread is a bit old, but nonetheless:
I think the redirecting thing was done for the video - it is very much info in a short time already even without all the compiler output.
It can be useful to do something like this (on slow terminals or while using remote connections - it makes a sometimes huge difference).
It is even configurable via /etc/make.conf with:
Code:
EMERGE_DEFAULT_OPTS="--nospinner --quiet"
No info is lost, errors are still shown - and there are always the emerge-logs in /var/log/portage...

[edit] the kernel compilation is the only thing this setting has no effect on - redirecting some output, like said above, to have less messages on screen may be useful here

Last edited by jomen; 07-21-2009 at 04:07 AM.
 
  


Reply



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
Dual G5 PowerPC: Install Gentoo/Gentoo on OSX? MadSkillzMan General 9 06-29-2005 02:17 PM
Gentoo Stage 1 install No Net question ChronusDark Linux - General 7 03-06-2005 05:57 PM
Gentoo install question nickbird Linux - General 2 02-01-2005 10:14 PM
gentoo file manager install issues (not Gentoo) windeath Fedora 2 03-01-2004 07:17 PM
Gentoo install question? l0f33t Linux - Distributions 14 09-05-2003 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 08:16 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