command > out.txt 2>&1
Category: I/O Redirection & Pipes
Redirect both stdout and stderr to the same file