Which of the following commands could you use to exit the vi Editor in Linux, saving changes?
- :q
- :q!
- :x
- Ctrl + Z
EXPLANATION
:x - Exit, saving changes
:q - Exit as long as there have been no changes
:q! - Exit and ignore any changes
Ctrl + Z - Suspend editor
https://www.cs.colostate.edu/helpdocs/vi.html
http://www.lagmonster.org/docs/vi.html
http://www.rollanet.org/~mdoc/vi.htm
0 comments:
Post a Comment