Halloween Special 2026! Get Up to 25% OFF Practice Questions! Limited Time - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 101-500 Exam - Topic 2 Question 112 Discussion

Posted by Anglea on Jun 12, 2025 at 07:33 AM

Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.)

Suggested Answer: A, D

Get Premium 101-500 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
28 comments · newest first
TH
Therese 10 months ago
I always use esc ZZ, works every time!
BA
Barney 10 months ago
Wait, is ctrl XX even a thing?
EL
Eliz 10 months ago
I thought B was right too?
LE
Letha 11 months ago
Definitely A and D!
BR
Brynn 11 months ago
A and D are the correct ones!
EL
Elfriede 11 months ago
I thought "esc zz" was a valid command, but I can't remember if it actually saves the document or just exits.
DE
Deeann 11 months ago
I feel like "ctrl :w!" is not right for exiting, but I might be mixing it up with something else we practiced.
JU
Juliann 12 months ago
I remember practicing with "esc :wq!" as a way to save and exit, but I can't recall if there was another option that worked too.
LA
Lashawnda 12 months ago
I think it's definitely "esc ZZ" for saving and exiting, but I'm not sure about the second one.
CE
Celestina 1 year ago
This is a tricky one, but I've got it. The two correct answers are A and D - "esc ZZ" and "esc :wq!". I'm confident those are the right vi commands to save and exit.
LU
Luke 1 year ago
Ah, I remember now! The "ctrl :w!" command is also a way to save the document in vi. I'll make sure to select that one too.
VA
Valene 1 year ago
Okay, let me think this through. I know the "esc :wq!" command is one way to save and exit, and I think "esc ZZ" is another. I'll double-check those and mark them.
KA
Kami 1 year ago
Hmm, I'm a bit unsure about this one. I know there are a few different ways to save and exit in vi, but I can't remember all the specific commands off the top of my head.
IZ
Izetta 1 year ago
I'm pretty sure the correct answers are A and D, since those are the standard commands for saving and exiting in vi.
NA
Naomi 1 year ago
You know, I heard the vi editor was invented by a group of comedians. Explains all the weird commands, if you ask me. But A and D are the winners.
AN
Antione 1 year ago
I'm more of an Emacs guy myself, but A and D seem like the way to go here.
ST
Stephane 1 year ago
↳ replying to Antione
A) esc ZZ
FI
Filiberto 1 year ago
Ctrl + XX? Really? Who uses that, am I right? Definitely A and D for me.
DA
Danica 1 year ago
Hmm, I always forget the difference between 'ZZ' and 'zz'. Glad the question specifies the correct ones.
LA
Latonia 1 year ago
↳ replying to Danica
D) esc :wq!
AL
Alisha 1 year ago
↳ replying to Danica
A) esc ZZ
DE
Devora 1 year ago
A and D, of course! Gotta love those classic vi shortcuts.
ME
Melissia 1 year ago
↳ replying to Devora
User 3: Melissia: Nice choices! Those are the correct sequences to save and exit in vi.
MI
Miss 1 year ago
↳ replying to Devora
User 2: Miss: D) esc :wq!
KR
Krissy 1 year ago
↳ replying to Devora
User 1: A) esc ZZ
AV
Avery 1 year ago
I'm not sure, but I think it might be B) ctrl :w! instead of A).
CA
Carolann 1 year ago
I agree with Myra, those options make sense to me.
MY
Myra 1 year ago
I think it's A) esc ZZ and D) esc :wq!
0/2000 characters

Save Cancel