tee — Split Output to Screen and File
tee writes to a file AND passes output through to the next command simultaneously. Essential for logging while keeping pipelines alive, and for writing to protected files with sudo.
February 10, 20255 min read
linuxteepipesredirectionterminal