GNU/Linux tee command

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

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.



Got any GNU/Linux Question?