Name

tee

Synopsis

tee [options] files
                  

Accepts output from another command and sends it both to the standard output and to files (like a T or a fork in a road).

Options

-a

Append to files; don’t overwrite.

-i

Ignore interrupt signals.

Example

View listing and save for later:

$ ls -l | tee savefile

Get Mac OS X Panther in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.