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
...
Log in to ExamTopics
Sign in:
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.
DuboisNicolasDuclair
1 year, 4 months ago