tee output.txt

Category: File Viewing & Editing

tee output.txt

Read from stdin and write to both stdout and a file

Reads input and writes it to BOTH the screen and a file simultaneously. Useful in pipelines when you want to save output while still seeing it.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.