Capture all output in one file.
Section: Input Output and Pipelines
Redirect stdout and stderr together
bash
bash
command > command.log 2>&1Explanation
Common logging pattern in scripts and cron jobs.
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 Input Output and Pipelines