Which command must be entered before exiting vi to save the current file as filea.txt?
Which command must be entered before exiting vi to save the current file as filea.txt?
To save the current file with a new name in vi, the correct command is :w filea.txt. The :w command is used for writing (saving) the file, and appending the new file name specifies that the current file should be saved under that name.
Correct. https://www.cyberciti.biz/faq/how-to-save-existing-file-to-a-new-file-save-as-in-vi-vim/
the answer is correct!
:w stands for write
Answer: D