Pipeline and IO redirection
Pipe and IO redirection: >
< >> output redirection: overwrite the output, and the original content will be overwritten
> >: append output, append content at the end of the file
Set-C: prohibit the use of override redirection on existing files
If the output is forcibly overwritten, use > |
Set + C: turn off the above functions
2 >: redirect error output
2 > >: redirect error output by appending method
& >: redirect standard output or error output to the same file