Linux OS Editors Question:
Download Questions PDF

Which command is used to close the vi editor?
a) q
b) wq
c) both (a) and (b)
d) none of the mentioned

Linux Editors Interview Question
Linux Editors Interview Question

Answer:

c) both (a) and (b)
Explanation:
The command 'q' just closes the file and 'wq' saves and closes the file.

Download Linux Editors Interview Questions And Answers PDF

Previous QuestionNext Question
Which command is used to delete the character before the cursor location in vi editor?
a) X
b) x
c) D
d) d
Which vi editor command copies the current line of the file?
a) yy
b) yw
c) yc
d) none of the mentioned