Skip to content

Glossary: Linux for Developers

2>&1 (redirect errors)

Also written: 2>&1, 2>, stderr

Sends error messages (stream 2) to the same place as normal output (stream 1). In cron jobs, `>> log 2>&1` puts both in the log file.

Where the book teaches it

Related terms

cron/dev/null