LPI
101-400 · Question #366
While editing a file in vi, you realize that you are changing the wrong file. What vi command sequence will allow you to quit without saving your changes?
The correct answer is B. :q! See the full explanation below for the reasoning.
Question
While editing a file in vi, you realize that you are changing the wrong file. What vi command sequence will allow you to quit without saving your changes?
Options
- A:Q!
- B:q!
- C:w!
- D:wq!
How the community answered
(23 responses)- A4% (1)
- B83% (19)
- C9% (2)
- D4% (1)
Community Discussion
No community discussion yet for this question.