Chapter 3 Quiz

Ace your homework & exams now with Quizwiz!

At the vi command mode prompt, what key combination will force a quit from the vi editor without saving changes?

:q!

Which of the following key combinations, commonly used in the vi editor command mode, displays current line statistics?

Ctrl+g

When using the vi text editor, which of the following keys, when in command mode, will move to the last line in the document?

G

In order to move from the /home/joe/test/data to the /home/joe directory, what command should be issued?

cd ../..

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?

egrep (John|Bob) salesemployees.csv

Which of the following commands will not interpret regular expressions, which translates into faster results being returned? (Choose all that apply.)

fgrep & grep -F

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.)

grep -E "Joe?" document1.txt & grep "Joe*" document1.txt & grep -E "Joe*" document1.txt

Mike has changed directory into one subdirectory after the next and has lost track of where he's at in the directory tree. Which of the following commands can he use to tell him the full path to the current subdirectory he is in?

pwd

What command can be issued to confirm which directory you are in at a command line prompt?

pwd

What command can be used to display the last five lines of a text file?

tail -5


Related study sets

WileyPlus Chapter 16-19 (test 2)

View Set

Parallel lines cut by a Transversal- Solving for angles, Parallel Lines and Transversals Review, Triangle Sum Theorem, Triangle Exterior Angle Theorem, Parallel Lines Cut by a Transversal - Solve for x

View Set

The cardiovascular system in pregnancy

View Set

Chapter 2 Reading Perception, Self and Communication

View Set

Care of the Childbearing Family Exam 2

View Set

115- Unit 2 Accountability and Responsibility

View Set

MKTG Chapter 4 the marketing environment

View Set