Allgemein

How to Redirect stderr to stdout in Bash

How to Redirect stderr to stdout in Bash

To redirect stderr and stdout, use the 2>&1 or &> constructs. In Bash and other Linux shells, when a program is executed, it uses three standard I/O streams.