101-500 Exam QuestionsBrowse all questions from this exam

101-500 Exam - Question 45


Which command must be entered before exiting vi to save the current file as filea.txt?

Show Answer
Correct Answer: D

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.

Discussion

4 comments
Sign in to comment
CuriousLinuxCatOption: D
Apr 5, 2021

Correct. https://www.cyberciti.biz/faq/how-to-save-existing-file-to-a-new-file-save-as-in-vi-vim/

MartiFC
Nov 23, 2021

the answer is correct!

XVO668Option: D
May 1, 2023

:w stands for write

NinymoOption: D
Mar 24, 2024

Answer: D