Save command output while still printing it.
Section: Create, touch, truncate
Write output to file and stdout
bash
bash
echo 'hello' | tee hello.txtLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Create, touch, truncate