Complete Guide to fork and exec in Linux — How the Shell Executes Programs
This post explains how a shell actually runs commands through fork and exec. Instead of executing programs directly, the shell creates a new process, replaces it with the target program, and keeps itself alive to continue controlling execution.