QuestionQ18

GNU and Unix Commands

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

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

The vi command :w filea.txt writes the current buffer to the file named filea.txt.

Community Discussion

No comments yet. Be the first to start the discussion!