tee command example

Tee is a useful command in linux that will allow one read from standard input and write to standard output. This is particularly useful when compiling large programs and want to save the output. For example, we can combine tee with the “make” command, which is often used when compiling programs.

make | tee make-output.txt

This will allow us to see if there were any errors with our make and not have to closely monitor it on the terminal. Tee can be used with most commands in linux.

Be the first to comment

Leave a Reply