module 3 quiz

docx

School

Wake Tech *

*We aren’t endorsed by this school

Course

120

Subject

Statistics

Date

Apr 3, 2024

Type

docx

Pages

2

Uploaded by ColonelFlower887

Report
Module 3 Quiz 1. When using the vi text editor, which of the following keys, when in command mode, will move to the last line in the document? a. P b. L c. G d. W 2. At the vi command mode prompt, what key combination will force a quit from the vi editor without saving changes? a. :exit b. :! c. :q d. :q! 3. Kate wants to compare two text files to identify what might have been changed from one version to another. Which of the following commands can she use to do this? a. version --compare document1.txt document2.txt b. diff document1.txt document2.txt c. compare document1.txt document2.txt d. match document1.txt document2.txt 4. If enough unique letters of a directory name have been typed, what key can be pressed to activate the BASH shell's completion feature? a. Tab b. Ctrl c. Esc d. Alt 5. What command is most effective at identifying different types of files? a. ls -l b. file c. ll d. stat 6. Garrett wants to search through a csv file to find all rows that have either the name John or Bob in them and display them out to the terminal. Which of the following commands could Garrett use to perform this search? a. grep -E (John|Bob) salesemployees.csv b. egrep (John|Bob) salesemployees.csv c. grep (John|Bob) salesemployees.csv d. grep -E “(John|Bob)” salesemployees.csv
7. In order to move from the /home/joe/test/data to the /home/joe directory, what command should be issued? a. cd .. b. /home/joe c. cd ./.. d. cd ../.. 8. Jo has received a text file which contains multiple instances of his name spelled correctly as well as multiple instances spelled as Joe. Which of the following commands would search a text file for any occurrences of either spelling and display them out to the terminal? (Choose three.) a. grep “Joe*” document1.txt b. grep -E “Joe*” document1.txt c. grep “Joe?” document1.txt d. grep -E “Joe?” document1.txt Answers: 1 . c. G 2. d. :q! 3. b. diff document1.txt document2.txt 4. a. Tab 5. d. stat 6. d. grep -E “(John|Bob)” salesemployees.csv 7. d. cd ../.. 8. a. grep “Joe*” document1.txt b. grep -E “Joe*” document1.txt d. grep -E “Joe?” document1.txt
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help