Before a command is executed, its input (standard input stream) and output (standard output stream and standard error stream) may be redirected using redirection operators by the command line interpreter.
Redirection may also be used to open and close files for the current shell execution environment.
Redirection allows commands’ file handles to be:
and can change the files the command:
Generally, a redirection goes:
See: