IT Questions and Answers :)

Wednesday, May 30, 2018

Which of the following commands could you use to exit the vi Editor in Linux, saving changes?

Which of the following commands could you use to exit the vi Editor in Linux, saving changes?

  • :q
  • :q!
  • :x
  • Ctrl + Z 

Which of the following commands could you use to exit the vi Editor in Linux, saving changes?

 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
Share:

0 comments:

Post a Comment

Popular Posts