Summery

tee is a Linux command that reads data from standard input and writes it to both the terminal and a file.

Commands

command | tee output.txt - Display output and save it
command | tee -a output.txt - Append instead of overwrite