3. Data Streams and piping in linux Flashcards
What are the data streams when a process is running?
- STDIN
- STDOUT
- STDERR
What does STDIN stand for?
Standard Input.
What does STDOUT stand for?
Standard Output.
What does STDERR stand for?
Standard Error.
Command >
This is the forward command for STDOUT data stream.
Command cat
Read the content of a file.
command 2>
This is the forward command for STDERR data stream.
Numeric Id’s of the process data streams ?
0 - STDIN
1 - STDOUT
2 - STDERR
Command»_space;
This is the appending command for STDOUT data stream.
What is piping used for?
Sending data from a STDOUT process to a STDIN of another process.
Can I use piping with STDERR? (Yes or No)
No
Command |
This is the piping command.
Command echo
Print text to the terminal.