[pappy@chmodx]:$ man tee

$ tee

Read from standard input and write to standard output and files

DOCUMENTEDSearch & textUbuntu 24.04 LTS baseline

Synopsis

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

What it does

Examples

Display and save command output
ip addr | tee network.txt
Append instead of overwrite
command | tee -a output.log

Important details

These examples are intentionally conservative. Command behavior can still depend on filesystem state, permissions, locale, shell, installed package version, and other system configuration. For exact option semantics, the linked authoritative documentation is the source of truth.