Pipeline and IO redirection
Arithmetic, controller: CPU
Memory: RAM
Input/output device I/O
Programs: Directives and data
Controller: Instruction
The arithmetic device:
Memory:
Address bus: Memory addressing
Data bus: Transferring data
Control Bus: Control instructions
/ o:
Programs: Directives and data
Input device:
Output device:
System settings:
Default output device: Standard output, stdout,1
Default input device: standard input, stdin,0
standard error Output: stderr,2
Standard input: Keyboard
Standard Error Output: Display
I/O redirection:
Linux:
: Overwrite output
>>: Append output
SET-C: Disable overwrite redirection for files that already exist
Set +c: Turn off the above features
2>: Redirect Error output
2>>: Append method (redirect error output)
&>: Redirect standard output or error output to the same file
<: input
<<:here Document
Pipeline: The output of the previous command, as input to the latter command
Command 1 | command 2 | command 3 ...
Tee: Reads the standard input data and outputs its contents to a file.
This article is from the "11913800" blog, please be sure to keep this source http://11923800.blog.51cto.com/11913800/1840259
Linux Learning notes-pipeline and IO redirection