Skip to content

Glossary: Command Line for IT: Bash and PowerShell

2>&1

A redirection that means "send standard error (channel 2) to the same place as standard output (channel 1)". Put it after > file, as in cmd > all.txt 2>&1, so errors end up in the same file as the output.

Where the book teaches it

Related terms

redirectionstandard errorstandard output