Section 7 - Searching and Extracting Data from Files Flashcards

1
Q

What is a command line pipe?

A

The output of the first command is used as input for the second command

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

What is the benefit of using pipes?

A

Pipes allow for quick execution of commands performing complex tasks

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

What is the grep command?

A

The grep command searches for keywords in the output

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

What is input and output redirection?

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

How can a program’s output be used as an input?

A

via the process of piping

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

What is the Xargs command?

A

Enables a user to generate command line options from files or other programs’ output

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

what does > do?

A

creates a new file containing standard output ( can overwrite file)

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

> >

A

appends standard output ot an existing file ( not overwrite it)

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

2>

A

New file with any standard errors the program with throw

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

A

to append errors to existing file

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

&>

A

creates new file with standard error and standard output (overwrites)

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

<

A

sends content to specified file as input back into standard input.

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

What is normally standard input?

A

Keyboard is the usual standard input

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

«

A

accepts text on following lines as standard input

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

<>

A

specified file used both for standard input and output ( can read and write the file)

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

What is standard output?

A

Normal program messages

17
Q

Standard Error messages are?

A

Any error messages

18
Q
A