exam questions

Exam 101-400 All Questions

View all questions & answers for the 101-400 exam

Exam 101-400 topic 3 question 36 discussion

Actual exam question from LPI's 101-400
Question #: 36
Topic #: 3
[All 101-400 Questions]

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

  • A. esc ZZ
  • B. ctrl :w!
  • C. esc zz
  • D. esc :wq!
  • E. ctrl XX
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
DuboisNicolasDuclair
1 year, 4 months ago
Selected Answer: AD
The two sequences in the vi editor that save the opened document and exit the editor are: A. `esc ZZ` D. `esc :wq!` These sequences perform the following actions: - `esc ZZ`: Press `Esc` to exit insert mode, and then type `ZZ` (uppercase) to save the changes and exit. - `esc :wq!`: Press `Esc` to exit insert mode, then type `:wq!` and press `Enter` to save the changes and exit. The `!` is used to force the write and exit even if changes are not marked as modified. The other options are not the standard vi commands for saving and exiting: B. `ctrl :w!` and E. `ctrl XX` use non-standard key combinations that are not typically used in vi. C. `esc zz` simply centers the current line on the screen but doesn't save or exit the document.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago