Class 9: Redirection Flashcards
1
Q
<
A
Redirects the input
2
Q
>
A
Redirects the output
3
Q
2>
A
Redirects Unix/Linux system errors
4
Q
Prog1<prog1.input
A
Input comes from file prog1.input
5
Q
%prog1 2> erro.file
A
This will run prog1 and write any Unix/Linus error messages to error.file
6
Q
Prog1 > stout.file 2>&1
A
Redirects stdout and stderr to the same file
7
Q
Prog1 2>&1>stdout_stderr.file
A
This will send stdout to stdout_stderr.file and stderr to what was previously stdout
8
Q
A