Redirectors Flashcards

1
Q

Redirector operations

A
  • >
  • > >
  • 2>
  • &>
  • <>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

> Redirector

A
  • Create a new file with standard output
  • Will overwrite
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

» Redirector

A
  • Append standard output to an existing file
  • log files
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

2> Redirector

A
  • Create a new file with any standard errors
  • Will overwrite
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Redirector

A
  • Append standard error to an existing file
  • Create a new file if it doesn’t exist
  • log files
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

&> Redirector

A
  • Create a new file containing any standard output & standard errors
  • Overwrite existing file
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

< Redirector

A
  • Send contents of the specified file as input back into the standard input
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Standard input

A
  • Normally keyboard
  • Can be a file with redirctors (<,
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

« Redirector

A

Looks up text on the following lines as standard input

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

<> Redirector

A
  • Cause the specified file to be used for standard input and standard output
  • Can read and write to that file
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

File descriptor number 0

A

Standard In (STDIN)

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

File descriptor number 1

A

Standard Out (STDOUT)

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

File descriptor number 2

A

Standard Error (STDERR)

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