Hoofdstuk 8 Flashcards

1
Q

A successful command will print output to STDOUT.

A

True

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

A pipe allows you to… 8.3

A

…send the output of one command to another

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

Channel 2 is: - 8.4.5

A

STDRR

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

Which command(s) can be used to sort the lines of list.file alphabetically and display it on the screen? -8.8

A

sort cat list.file | sort

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

The grep command… - 8.11

A

…can be used to filter lines in a file or the output of another command based on matching a pattern.

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

Which of the following commands will display only lines that begin with start? - 8.12.4

A

grep ^start file.txt

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

Which of the following commands scans the file to determine file locations? 8.5

A

find

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

Which option for the cut command is used to specify the field? - 8.10

A

-f

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

Which command can be used to print line numbers?

A

n1

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

The command echo “text”&raquo_space; file.txt will not overwrite file.txt if it already exists. 8.4.4

A

True

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

The grep command… - 8.11

A

…will display all the lines in a file containing the specified Regular Expression.

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

Which of the following commands will display only lines that begin with test? - 8.13

A

grep ^test file.txt

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

Which of the following commands will display lines that contain either start or end? - 8.13

A

egrep ‘start|end’ file.txt

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

Which option for the wc command will print the number of lines in a file? 8.9

A

-w

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

The command echo “text” > file.txt will create file.txt if it does not already exist. 8.4.4

A

True

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

The command echo “text” > file.txt will not overwrite file.txt if it already exists. - 8.4.4

A

False