3. Data Streams and piping in linux Flashcards

1
Q

What are the data streams when a process is running?

A
  • STDIN
  • STDOUT
  • STDERR
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does STDIN stand for?

A

Standard Input.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does STDOUT stand for?

A

Standard Output.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does STDERR stand for?

A

Standard Error.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Command >

A

This is the forward command for STDOUT data stream.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Command cat

A

Read the content of a file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

command 2>

A

This is the forward command for STDERR data stream.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Numeric Id’s of the process data streams ?

A

0 - STDIN
1 - STDOUT
2 - STDERR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Command&raquo_space;

A

This is the appending command for STDOUT data stream.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is piping used for?

A

Sending data from a STDOUT process to a STDIN of another process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Can I use piping with STDERR? (Yes or No)

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Command |

A

This is the piping command.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Command echo

A

Print text to the terminal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly