Name

tee

Synopsis

tee [options] files

Description

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

Options

-a, --append

Append to files; do not overwrite.

-i, --ignore-interrupts

Ignore interrupt signals.

--help

Print a help message and then exit.

--version

Print version information and then exit.

Example

ls -l | tee savefile    View listing and save for later

Get Linux in a Nutshell, Third 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.