Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

AWS Cloud

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.

0, 1, 2 streams 0 stdin, 1 stdout, 2 stderr. Save output. Both to one file. Show and save.
0, 1, 2 streams · Download PNG
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

See all AWS revision cards