The Complete Guide to Bash I/O Redirection: From File Descriptors 0/1/2 to Advanced Pipeline Tricks
A comprehensive guide to Linux/Bash I/O redirection: standard streams (0/1/2), /dev/null black hole, order-of-evaluation pitfalls (> file 2>&1 vs 2>&1 > file), the sudo redirection trap, and script-wide logging with exec.