What could be the purpose of issuing this command?

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?

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?

A.
to replace the word hello with the word init globally in the newfile.txt file

B.
to replace the word init with the word hello globally in the newfile.txt file

C.
to delete all the lines containing the word hello and init in the newfile.txt file

D.
to replace the word hello with the word init from the cursor position in the newfile.txt file



Leave a Reply 0

Your email address will not be published. Required fields are marked *