Quantcast
Channel: aix
Viewing all articles
Browse latest Browse all 10

Linux tee command - redirect output to two directions at once

$
0
0

Linux tee command - redirect output to two directions at once

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.


Viewing all articles
Browse latest Browse all 10

Trending Articles