Send errors to a separate file.
Section: Input Output and Pipelines
Redirect stderr to file
bash
bash
command 2> errors.logExplanation
Useful when preserving errors separately from normal output.
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