Zet - How do you put stdout and stderr into a file?

How do you put stdout and stderr into a file?

use 2>&1 at the end of the command

eg

myprogram > stdout.txt 2>&1

#bash