• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/14

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

14 Cards in this Set

  • Front
  • Back
What are two methods to exit vi from command mode?
ZZ
:wq
yy
:e!
You are editing a text file with vi and need to open a new line above the one you are currently working on. What key should you press to accomplish this?
p
i
o
a
While in command mode, you copied a whole line of text to memory. You navigated to a diff. location in the file, and now you need to place the line of text. What command should you use?
u
dw
p
cc
Which key combo should you press in vi to save the file you are working on and quit?
S
:q
s
:wq
While in command mode, you need to find the term -Sam_. Which command should yo use?
?
You need to create a new text file with the name -network.txt- in the current working directory. Which command starts vi and creates the file?
vi -new network.txt
vi network.txt
ni -n network.txt
vi :w network.txt
Matching:
A) The inital vim mode used when vim is start. It has commands that cut and repace text, and it is the mode vi uses to enter other modes.
B) The mode that works with the file system. Use it to save files after editing them.
C) the mode that vim uses to write and edit in the text file.
Edit mode
command mode
Command line mode
After opening a file in vi, you want to switch from command mode to command line mode. What key should you enter?
?
Matching:
A) Move the cursor up a line
B)Move the cursor one space to the left
C) Move cursor one space right
D) Move the cursor down a line
h
i
k
l
You have opened the /root/myscript in vi. While looking at the file, your soda spilled, and you hit several keys on the keyboard trying to pick it back up. There are extra characters everywhere in the file, and you know you can't fix it. How do you exit vi without saving changes?
:wq
:q
:q!
:x
While in vi command mode, you need to copy an entire line of text. What command should you use?
?
Which of the following commands will cut an entire line from a file while in vi command mode?
C
dd
yy
de
You made a few changes to the /grub/grub/grub.config file and now you need to exit out of insert mode, saves changes, and quit. What should you do?
:w!
:q1
Esc
:wq
A friend sent you a shell script that is 117 lines long. He says that he wants to examine code on lines 82 through 87. What command line mode takes you directly to line 82?
?