Class 9: Redirection Flashcards

1
Q

<

A

Redirects the input

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

>

A

Redirects the output

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

2>

A

Redirects Unix/Linux system errors

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

Prog1<prog1.input

A

Input comes from file prog1.input

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

%prog1 2> erro.file

A

This will run prog1 and write any Unix/Linus error messages to error.file

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

Prog1 > stout.file 2>&1

A

Redirects stdout and stderr to the same file

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

Prog1 2>&1>stdout_stderr.file

A

This will send stdout to stdout_stderr.file and stderr to what was previously stdout

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