GNU/Linuxtee command


Introduction

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.

Syntax

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

Parameters

OptionsDescription
-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.

Remarks

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