Bash Scripting 16 🐧 I/O Redirection — Managing standard input, output, and error streams
Every process that the shell starts has three default streams: standard input (stdin), standard output (stdout), and standard error (stderr). The previous chapters covered variables, loops, and functions; this chapter covers the mechanism that connects those streams to files, pipes, and other descriptors. The shell does not pass the terminal directly to the process. It…