Linux_FoundationLinux_Foundation
LFCS · Question #786
LFCS Question #786: Real Exam Question with Answer & Explanation
Sign in or unlock LFCS to reveal the answer and full explanation for question #786. The question stem and answer options stay visible for context.
Submitted by skyler.x· Apr 18, 2026Essential Commands
Question
While editing a file in vi, an administrator realizes that the wrong file is being changed. Which of the following vi command sequences will allow the administrator to quit without saving any changes?
Options
- A:Q!
- B:q!
- C:w!
- D:wq!
Unlock LFCS to see the answer
You've previewed enough free LFCS questions. Unlock LFCS for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#vi editor#text editing#quitting files