tee

tee reads from standard input and write to standard output and files.

It helps keeping a copy of the standard output in a file.

tee reads the standard input, copies it in the standard output (like cat) and copies this same standard output to a file as specified in argument.

tee options meaning
-a append to the given file, do not overwrite