nerdexam
Oracle

1Z0-409 · Question #52

You have opened a file called newfile.txt in the vi editor and in command mode, you enter :0,$ s/hello/init/g. What could be the purpose of issuing this command?

The correct answer is A. to replace the word hello with the word init globally in the newfile.txt file. See the full explanation below for the reasoning.

Question

You have opened a file called newfile.txt in the vi editor and in command mode, you enter :0,$ s/hello/init/g. What could be the purpose of issuing this command?

Options

  • Ato replace the word hello with the word init globally in the newfile.txt file
  • Bto replace the word init with the word hello globally in the newfile.txt file
  • Cto delete all the lines containing the word hello and init in the newfile.txt file
  • Dto replace the word hello with the word init from the cursor position in the newfile.txt file

How the community answered

(26 responses)
  • A
    81% (21)
  • B
    4% (1)
  • C
    12% (3)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-409 Practice