command > out.txt 2> err.txt

Category: I/O Redirection & Pipes

command > out.txt 2> err.txt

Redirect stdout and stderr to separate files

Sends normal output to one file and error messages to a different file — keeps them separate for easier debugging.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.