TEE(1) User Commands TEE(1)

tee
replicate the standard output

tee [-ail] [file]...

tee copies standard input to standard output, making a copy in zero or more files. tee does not buffer its output by default (but see the -l option). The options determine if the specified files are overwritten or appended to. If a write to a file fails, tee continues to write to other files although it exits with a non-zero exit status.

The tee built-in in ksh93(1) is associated with the /bin and /usr/bin paths. It is invoked when tee is executed without a pathname prefix and the pathname search finds a /bin/tee or /usr/bin/tee executable.

The following options are supported:
, --append
Appends the output to the files rather than overwriting them.
, --ignore-interrupts
Ignores SIGINT signal.
, --linebuffer
Sets the standard output to be line buffered.

The following operands are supported:
file
A path name of an output file. Processing of at least 13 file operands is supported.

0
All files copied successfully.
>0
An error occurred.

See environ(5) for descriptions of the following environment variables that affect the execution of tee: LANG, LC_ALL, LC_TYPE, LC_MESSAGES, LC_NUMERIC, and NLSPATH.

The command line interface of tee is Committed. The output of tee is Committed. The ksh93(1) built-in binding to /bin and /usr/bin is Volatile.

cat(1), ksh93(1), attributes(5), environ(5), largefile(5), standards(5)
February 9, 2021 illumos