New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 101-500 Exam - Topic 2 Question 112 Discussion

Actual exam question for LPI's 101-500 exam
Question #: 112
Topic #: 2
[All 101-500 Questions]

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

Show Suggested Answer Hide Answer
Suggested Answer: A, D

Contribute your Thoughts:

0/2000 characters
Therese
2 months ago
I always use esc ZZ, works every time!
upvoted 0 times
...
Barney
2 months ago
Wait, is ctrl XX even a thing?
upvoted 0 times
...
Eliz
3 months ago
I thought B was right too?
upvoted 0 times
...
Letha
3 months ago
Definitely A and D!
upvoted 0 times
...
Brynn
3 months ago
A and D are the correct ones!
upvoted 0 times
...
Elfriede
3 months ago
I thought "esc zz" was a valid command, but I can't remember if it actually saves the document or just exits.
upvoted 0 times
...
Deeann
4 months ago
I feel like "ctrl :w!" is not right for exiting, but I might be mixing it up with something else we practiced.
upvoted 0 times
...
Juliann
4 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.
upvoted 0 times
...
Lashawnda
4 months ago
I think it's definitely "esc ZZ" for saving and exiting, but I'm not sure about the second one.
upvoted 0 times
...
Celestina
4 months 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.
upvoted 0 times
...
Luke
4 months 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.
upvoted 0 times
...
Valene
5 months 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.
upvoted 0 times
...
Kami
5 months 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.
upvoted 0 times
...
Izetta
5 months ago
I'm pretty sure the correct answers are A and D, since those are the standard commands for saving and exiting in vi.
upvoted 0 times
...
Naomi
7 months 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.
upvoted 0 times
...
Antione
7 months ago
I'm more of an Emacs guy myself, but A and D seem like the way to go here.
upvoted 0 times
Stephane
7 months ago
A) esc ZZ
upvoted 0 times
...
...
Filiberto
7 months ago
Ctrl + XX? Really? Who uses that, am I right? Definitely A and D for me.
upvoted 0 times
...
Danica
7 months ago
Hmm, I always forget the difference between 'ZZ' and 'zz'. Glad the question specifies the correct ones.
upvoted 0 times
Latonia
7 months ago
D) esc :wq!
upvoted 0 times
...
Alisha
7 months ago
A) esc ZZ
upvoted 0 times
...
...
Devora
8 months ago
A and D, of course! Gotta love those classic vi shortcuts.
upvoted 0 times
Melissia
7 months ago
User 3: Melissia: Nice choices! Those are the correct sequences to save and exit in vi.
upvoted 0 times
...
Miss
7 months ago
User 2: Miss: D) esc :wq!
upvoted 0 times
...
Krissy
7 months ago
User 1: A) esc ZZ
upvoted 0 times
...
...
Avery
8 months ago
I'm not sure, but I think it might be B) ctrl :w! instead of A).
upvoted 0 times
...
Carolann
9 months ago
I agree with Myra, those options make sense to me.
upvoted 0 times
...
Myra
9 months ago
I think it's A) esc ZZ and D) esc :wq!
upvoted 0 times
...

Save Cancel