How about reading the man page?  There's a whole section on
"redirection".

On Thu, 14 Nov 2002, Karl Bongers wrote:

> The order is significant, this works:
> command 2>&1 | tee output
> 
> 
> On Thu, Nov 14, 2002 at 05:31:55PM -0600, Bob Tanner wrote:
> > Being an old tcsh user, I use to be able to do this:
> > 
> > command |& tee output
> > 
> > stdout and stderr get piped to tee
> > 
> > I tried this under bash.
> > 
> > command | tee output 2>&1
> > 
> > No go. How do you pipe stderr in bash?
> >