Examples
bash
make 2>&1 | tee build.log # watch the build AND save the whole output
ls -l | tee files.txt # show and write
echo "127.0.0.1 host" | sudo tee -a /etc/hosts # -a: APPEND (to a protected file)
command | tee a.txt b.txt # into several files at once
command | tee /dev/null # "eat" stdout but get the exit code for pipefail