tee

Linux · Terminal · available in the simulator

What it does

Read from standard input and write to standard output and files.

Syntax

tee [opciones] archivo...

Options and parameters

  • -a

    Append to the given files, do not overwrite.

    echo hola | tee -a registro.txt
  • -i

    Ignore interrupt signals.

Usage examples

  • echo hola | tee -a registro.txt

Notes and common mistakes

  • Writes to both standard output and the specified file simultaneously.
Practise tee

Related commands