Standard Streams

say it: “STAN-derd STREEMZ” /ˈstændərd ˈstrimz/

stdin, stdout and stderr: a program's input, output and error channels.

What is Standard Streams?

Every program has three standard streams: standard input (stdin, 0), standard output (stdout, 1) and standard error (stderr, 2). Errors can be redirected separately with 2>.

./build.sh > build.log 2> errors.log
./build.sh > all.log 2>&1   # both into one file

Level: Journeyman · More Unix terms at this level

Updated