Redirectors Flashcards
1
Q
Redirector operations
A
- >
- > >
- 2>
- 2»
- &>
- <>
2
Q
> Redirector
A
- Create a new file with standard output
- Will overwrite
3
Q
» Redirector
A
- Append standard output to an existing file
- log files
3
Q
2> Redirector
A
- Create a new file with any standard errors
- Will overwrite
4
Q
2» Redirector
A
- Append standard error to an existing file
- Create a new file if it doesn’t exist
- log files
5
Q
&> Redirector
A
- Create a new file containing any standard output & standard errors
- Overwrite existing file
6
Q
< Redirector
A
- Send contents of the specified file as input back into the standard input
7
Q
Standard input
A
- Normally keyboard
- Can be a file with redirctors (<,
8
Q
« Redirector
A
Looks up text on the following lines as standard input
9
Q
<> Redirector
A
- Cause the specified file to be used for standard input and standard output
- Can read and write to that file
10
Q
File descriptor number 0
A
Standard In (STDIN)
11
Q
File descriptor number 1
A
Standard Out (STDOUT)
12
Q
File descriptor number 2
A
Standard Error (STDERR)