Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation Exam LFCA Topic 1 Question 31 Discussion

Actual exam question for Linux Foundation's LFCA exam
Question #: 31
Topic #: 1
[All LFCA Questions]

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

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Geraldine
11 days ago
Wait, you can exit vi without saving? Whoa, mind blown! :q! is the one, I'm remembering that for the next time I accidentally launch vi and panic.
upvoted 0 times
...
Ronny
14 days ago
C) :wq! would save the file before exiting, which is the opposite of what I want. :q! is the way to go here.
upvoted 0 times
Chu
1 days ago
A) :q!
upvoted 0 times
...
...
Crista
30 days ago
D) :exit sounds like it could work, but I'm not sure if that's a valid command in vi/vim. Better stick with the classic :q! just to be safe.
upvoted 0 times
Noah
9 days ago
A) :q!
upvoted 0 times
...
...
Steffanie
1 months ago
But :q! is the command to quit without saving in vi or vim
upvoted 0 times
...
Nikita
1 months ago
B) ZZ seems like it might work, but I'm pretty sure that's for saving and exiting, not just exiting without saving. I'm going with A) :q!.
upvoted 0 times
Zachary
1 days ago
B) Yeah, you're right. ZZ is for saving and exiting. :q! is the one for just exiting.
upvoted 0 times
...
Chauncey
8 days ago
A) :q! is the correct command to exit without saving in vi or vim.
upvoted 0 times
...
...
Jamal
1 months ago
I disagree, I believe the correct answer is B) ZZ
upvoted 0 times
...
Daniel
1 months ago
The :q! command is definitely the way to exit without saving in vi or vim. I always use that when I accidentally make changes I don't want to keep.
upvoted 0 times
William
3 days ago
Yeah, it's a lifesaver when you make a mistake.
upvoted 0 times
...
Tomoko
10 days ago
I agree, :q! is the way to go.
upvoted 0 times
...
...
Steffanie
2 months ago
I think the answer is A) :q!
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77
a