I'm new to linux systems and I can't really understand why wee need two operators that can redirect output: pipe as |
and ouput redirection operator >
? Can't we just always use the second? Most of the times I see that the pipe is used if multiple commands are chained together. If however, the output is redirected to file, as in echo 'hello' > filename
, the output redirection operator is used. What am I missing here?