nerdexam
Linux_Foundation

LFCA · Question #21

When using vi or vim to edit a file, how do you exit without saving?

Sign in or unlock LFCA to reveal the answer and full explanation for question #21. The question stem and answer options stay visible for context.

Submitted by fatima_kr· May 4, 2026Linux Fundamentals

Question

When using vi or vim to edit a file, how do you exit without saving?

Options

  • A:q!
  • BZZ
  • C:wq!
  • D:exit

Unlock LFCA to see the answer

You've previewed enough free LFCA questions. Unlock LFCA 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/vim#Text Editing#Command Mode#File Operations
Full LFCA Practice