Disclaimer: This passage contains notes and insights gathered from the internet. The content is used for educational purposes and attributed to the original authors. I do not claim any ownership over the material.
Redirection & Piping
STDIN (0) - Standard input (data fed into the program)
STDOUT (1) - Standard output (data printed by the program, defaults to the terminal)
STDERR (2) - Standard error (for error messages, also defaults to the terminal)
Redirection
> create new file to save output, or clear all contents and save output.
>> append contents into the file.
$ cat myoutput barry.txt bob example.png firstfile foo1 myoutput video.mpeg