Manual / tee
tee(1)
| TEE(1) | General Commands Manual | TEE(1) |
NAME
tee - pipe fitting
SYNOPSIS
tee [-ai] file ...
DESCRIPTION
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.
A failed destination is reported and skipped; copying to the other destinations and standard output continues. For example:
cat input | tee copy
FILES
/usr/man/TEE this page
SEE ALSO
DIAGNOSTICS
Exit status is 0 on success, 1 for a destination open/write failure, 2 for usage errors.
BUGS
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 |