nerdexam
LPI

101-500 · Question #499

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

The correct answer is D. :w filea.txt. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

GNU and Unix Commands

Question

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

Options

  • A%s filea.txt
  • B%w filea.txt
  • C:save filea.txt
  • D:w filea.txt
  • E:s filea.txt

How the community answered

(24 responses)
  • A
    4% (1)
  • C
    8% (2)
  • D
    88% (21)

Explanation

You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

Topics

#vi editor#save file#text editing#Unix commands

Community Discussion

No community discussion yet for this question.

Full 101-500 Practice