QuestionQ52

Linux Fundamentals

When editing a file with vi or vim, how can you exit without saving?

  • A :q!
  • B ZZ
  • C :wq!
  • D :exit
Explanation

:q! quits vi or vim while forcing the editor to discard any unsaved modifications.

Community Discussion

No comments yet. Be the first to start the discussion!