What Does Tee Command Do in Linux?

What Does Tee Command Do in Linux?
Contents

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

  1. -a ( –append ) – Do not overwrite the files instead append to the given files.
  2. -i ( –ignore-interrupts ) – Ignore interrupt signals.
  3. 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.

Marcus Vance
Author

Marcus Vance

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.