Send both stdout and stderr to same file.
Section: Redirection
Redirect stdout and stderr
bash
bash
command > all.log 2>&1Explanation
Very common for logs and debugging shell 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 Redirection