tee

Read stdin and write to stdout and files

← All commands

Common Examples

$ ls | tee output.txt
$ cmd | tee -a log.txt
$ cmd 2>&1 | tee debug.log