The tee command reads from standard input and writes to both standard output and one or more files at the same time. Tee is most commonly used in combination with other commands through piping.
Read more