LPI
101-500 · 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! You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
GNU and Unix Commands
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
(31 responses)- A3% (1)
- B87% (27)
- C6% (2)
- D3% (1)
Explanation
You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
Topics
#vi editor#command mode#quit without save#vi syntax
Community Discussion
No community discussion yet for this question.