3.2 Command Line - Searching and Extracting Data from Files Flashcards

1
Q

Which utility (by default) displays the first 10 lines of a file?

A) wc
B) less
C) tail
D) head

A

head

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

Which of the following utilities can be used to print the contents of a file to the screen? (Pick 2)

A) less
B) cat
C) echo
D) file

A

less
cat

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

Which utility can be used to count the number of words in a file or input?

A) wc
B) cut
C) sort
D) uniq

A

wc

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

Which utility can be used to search for a pattern or string?

A

grep

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