tee (command)

[2] The tee command is normally used to split the output of a program so that it can be both displayed and saved in a file.

[4] The Linux tee command was written by Mike Parker, Richard Stallman, and David MacKenzie.

[5] The command is available as a separate package for Microsoft Windows as part of the UnxUtils collection of native Win32 ports of common GNU Unix-like utilities.

Arguments: Flags: Note: When tee is used with a pipe, the output of the previous command is written to a temporary file.

This displays the standard output of the command lint program.c at the computer, and at the same time saves a copy of it in the file program.lint.

For example, removes common ANSI escape codes before writing to ls.txt, but retains them for display.

Example usage of tee : The output of ls -l is redirected to tee which copies them to the file file.txt and to the pager less . The name tee comes from this scheme - it looks like the capital letter T