Linux
04 Sep 2026
12 min read
Understand Linux File Descriptor Duplication and Shell Redirection
Shell redirection looks compact: command >output.log 2>&1 But that syntax hides a useful systems concept. The shell is not asking the command to “log somewhere else.” It is changing the command’s file descriptors before the program starts.