Write output to terminal and log file.
Section: Logging and Output
Mirror output to screen and file
bash
bash
./deploy.sh 2>&1 | tee deploy.logExplanation
Great for CI logs and manual runs.
Learn 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 Logging and Output