Linux Administration
medium

Pregunta de Linux Administration #019e3987

Enunciado de la Pregunta
Linux Administration
#vi
#zz
#wq
#save
#exit
Medio

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

A

esc ZZ

Correcto
B

ctrl :w!

C

esc zz

D

esc :wq!

Correcto
E

ctrl XX

Explicación Oficial / Explicaciones de la Comunidad

In vi, ZZ in command mode is a quick shortcut to save and quit. The sequence :wq (Write and Quit) is the standard ex-mode command to perform the same action. wq! ensures the save even if the file has read-only permissions (provided the user has ownership/rights).