GNU/Linux tee command


tee - read from standard input and write to standard output and files.

The tee command is named after the T-splitter in plumbing, which splits water into two directions and is shaped like an uppercase T.

tee copies data from standard input to each FILE, and also to standard output. In effect, tee duplicates its input, routing it to multiple outputs at once.


  • tee [OPTION]... [FILE]...


-a, --appendAppend to the given FILEs. Do not overwrite.
-i, --ignore-interruptsIgnore interrupt signals.
--helpDisplay a help message, and exit.
--versionDisplay version information, and exit.


If a FILE is specified as a dash ("-"), tee writes again to standard output.