●stdout, stdin and stderr are the default streams used in Linux.
●Standard Output (stdout):
○By default send output to terminal
○Manipulate the output to a file using:
■‘>’ overwrite the file
■‘>>’ append to a file
●Standard Input (stdin):
○By default takes input from keyboard.
○‘<’ to take input from a file.
●Standard Error (stderr):
○Route errors to a file instead of terminal.
○‘2>’ append errors to a log file.
I/O Redirects
Pipe (|)
●Used to send output of one command as input to the next
command.
●Example:
○ls | grep ‘coder’