|Skip Navigation Links|
|Exit Print View|
|man pages section 1: User Commands Oracle Solaris 11 Express 11/10|
- replicate the standard output
/usr/bin/tee [-options] [file...]
tee [-options] [file...]
tee copies standard input to standard output and to zero or more files. The options determine whether the specified files are overwritten or appended to. The tee utility does not buffer output. If a write to a file fails, tee continues to write to other files although it exits with a non-zero exit status.
The number of file operands that can be specified is limited by the underlying operating system.
This command conforms to IEEE Std 1003.1-2008.
The following options are supported:
Appends the output to the files rather than overwriting them.
Ignores SIGINT signal.
Sets the standard output to be line buffered.
Prints basic help information.
Prints built-in manual page in either plain text, HTML or nroff format.
Prints version information.
The following operands are supported:
A path name of an output file.
See largefile(5) for the description of the behavior of tee when encountering files greater than or equal to 2 Gbyte ( 231 bytes).
See environ(5) for descriptions of the following environment variables that affect the execution of tee: LANG, LC_ALL, LC_CTYPE, LC_MESSAGES, and NLSPATH.
The following exit values are returned:
Successful completion. The standard input was successfully copied to all output files.
An error occurred. The number of files that could not be opened or whose status could not be obtained.
See attributes(5) for descriptions of the following attributes:
IEEE Std 1003.1-2008.