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
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
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
4
Q
Which utility can be used to search for a pattern or string?
A
grep