command > out.txt 2> err.txt
Category: I/O Redirection & Pipes
Redirect stdout and stderr to separate files