cerr STDERR, outfile.o.
./program < infile.in > outfile.o:
cout << "This writes to STDOUT, and gets redirected to outfile.";
cerr << "This doesn't get redirected, and displays on screen.";
STDOUT STDERR,
./program < infile.in &> outfile.o
STDERR, STDOUT,
./program < infile.in 2> outfile.o
Bash redirection , , , ( " > " ).