tee command reads the standard input and writes it to both the standard output and one or more files. The command is named after the T-splitter used in plumbing. It basically breaks the output of a program so that it can be both displayed and saved in a file.
How do you use tee to append?
The tee command reads from the standard input and writes to both standard output and one or more files at the same time.
…
tee Command Syntax
- -a ( –append ) – Do not overwrite the files instead append to the given files.
- -i ( –ignore-interrupts ) – Ignore interrupt signals.
- Use tee –help to view all available options.
What does pipe tee do?
Pipe Tee is a type of pipe fitting which is T-shaped having two outlets, at 90° to the connection to the main line. It is a short piece of pipe with a lateral outlet. Pipe Tee is used to connect pipelines with a pipe at a right angle with the line. Pipe Tees are widely used as pipe fittings.