Linux tee command - redirect output to two directions at once
By Alvin Alexander. Last updated: June 3 2016
Today I ran into a need for my old friend the Linux tee
command. With the tee command you can read input from an input stream, and split the output stream in two directions, so it is both displayed on screen (stdout) and also re-direct it to a file. I needed to do this today when I wanted to monitor something that was running slow, and also keep an output log of the long-running process.