Skip to content
masterclass Buddy

Linux & Shell · Command

tee

tee copies standard input to standard output and to one or more files. It is useful for saving data while allowing a pipeline to continue.

Last updated

Syntax

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

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • splice(2)
  • vmsplice(2)
  • pipe(7)
  • cat(1p)

Source: tee(1) - Linux manual page. Checked 2026-11-03.