Back to the learning path

tee

tee: like a T-shaped pipe fitting (one in, two out) Command details
Step 1/2: Show and save

> sends output to a file and hides it from the screen. tee works like a T-fitting: it writes its input to a file and the screen, as in command | tee FILE.

$ echo "done" | tee log.txt
Fundamentalstee
Show it and save it
Echo "backup ok at 15:31" and pipe it to tee so it is shown on screen and saved to note.txt.
echoNext lesson:sort