Ravi Sir's Cards › AWS
0, 1, 2 streams
This revision card explains 0, 1, 2 streams. It starts from the need that 0 stdin, 1 stdout, 2 stderr. It describes save output. The how-to section notes both to one file. An example on the card is show and save.
Read card text
What this card says
Why do we need it?
0 stdin, 1 stdout, 2 stderr.
What is it?
Save output.
cmd > out.txt
How to do it
Both to one file.
cmd > all.log 2>&1
Example
Show and save.
cmd | tee out.txt