About Us Documentation

Contact Site Map



Go to the previous, next chapter.


Unix shells commonly provide several forms of redirection---ways to change the input source or output destination of a command. But one useful redirection is performed by a separate command, not by the shell; it's described here.

tee: Redirect output to multiple files

The tee command copies standard input to standard output and also to any files given as arguments. This is useful when you want not only to send some data down a pipe, but also to save a copy.


tee [ option ]... [ file ]...

If a file being written to does not already exist, it is created. If a file being written to already exists, the data it previously contained is overwritten unless the -a option is used.

The program accepts the following options. Also see section Common options.

-a - --append - -a - --append - Append standard input to the given files rather than overwriting them.
-i - --ignore-interrupts - -i - --ignore-interrupts - Ignore interrupt signals.



Email addresses listed on this site may  NOT be used for unsolicited commercial email.

Ready-to-Run Software, Inc Privacy Statement

Portions (c)Copyright, 1996-2005 by Ready-to-Run Software, Inc
(All rights reserved.)
212 Cedar Cove
Lansing, NY 14882
Phone: 607 533 UNIX (8649)
Fax: 607 533 4002