Build Your Own Linux Shell in C (Part 6): Input/Output Redirection Explained — , File… (opens in new tab)
Finally understand how Linux redirects command input/output using file descriptors, open(), close(), and shell internals
Read the original article