maux
Star on GitHub Buy me a coffee

Manual / tee

tee(1)

TEE(1) General Commands Manual TEE(1)

tee - pipe fitting

tee [-ai] file ...

Tee transcribes the standard input to the standard output and makes copies in the named files. At least one, and at most five, file operands are required.

Append to each named file.
Ignore interrupt signals.

A failed destination is reported and skipped; copying to the other destinations and standard output continues. For example:

cat input | tee copy

/usr/man/TEE this page

cat(1), cp(1), licenses(1)

Exit status is 0 on success, 1 for a destination open/write failure, 2 for usage errors.

Without -a, writing begins at offset zero but an existing longer file is not shortened. Use a new or empty destination when an exact copy is required.

September 19, 2026 maux