Computer Science - Unix - Discussion

Discussion Forum : Unix - Section 3 (Q.No. 26)
26.
Which command is used with vi editor to save file and remain in the editing mode?
:q
:w
q!
:x
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
2 comments Page 1 of 1.

Harshavardhan Kalsait said:   8 years ago
:q - for only QUIT the file.
:w - for SAVE the file.
q! -for forcefully closed.
:wq - for SAVE and QUIT both.

Lakshmi said:   1 decade ago
The command :wq in command mode means saving and then quitting the editor. So in that way we should save our file and we should still remain in editor so we should use :w command.

Post your comments here:

Your comments will be displayed after verification.