Read standard input and write to both standard output and one or more files simultaneously. Useful for logging command output while monitoring progress.
bash
command | tee-tool [options] <file...>
-a: Append to files instead of overwriting-i: Ignore interrupt signalsbash
echo "data" | tee-tool output.txt
ls -la | tee-tool -a log.txt
make 2>&1 | tee-tool build.log