Pipes command >/path/to/stdout.txt 2>/path/to/stderr.txt Redirect STDERR to STDOUT command 2>&1 Redirect both STDERR and STDOUT command &>/path/to/output.txt