Standard Streams
================
- Standard input (stdin): file descriptor is 0.
- Standard output (stdout): file descriptor is 1.
- Standard error (stderr): file descriptor is 2.
Redirection
===========
Most shells allow both standard output and standard error to be redirected to the same file using
>& filename
Bourne-style shells allow standard error to be redirected to the same destination that standard output is directed to using
2>&1
================
- Standard input (stdin): file descriptor is 0.
- Standard output (stdout): file descriptor is 1.
- Standard error (stderr): file descriptor is 2.
Redirection
===========
Most shells allow both standard output and standard error to be redirected to the same file using
>& filename
Bourne-style shells allow standard error to be redirected to the same destination that standard output is directed to using
2>&1