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?
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.
: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:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers