From any mode in vi, how do you save a the current file and exit vi? (give 2 options)
A.
ESC :wq!
B.
ESC :q!
C.
ESC ZZ
D.
ESC :Q
Explanation/Reference:
there is no ":" before ZZ!
From any mode in vi, how do you save a the current file and exit vi? (give 2 options)
From any mode in vi, how do you save a the current file and exit vi? (give 2 options)
A.
ESC :wq!
B.
ESC :q!
C.
ESC ZZ
D.
ESC :Q
Explanation/Reference:
there is no ":" before ZZ!
In the option A, the ‘!’ is not necessary to save a file and exit vi.
It MIGHT be, if there’s any warning about writing onto that file.