Oracle
1Z0-409 · Question #215
1Z0-409 Question #215: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-409 to reveal the answer and full explanation for question #215. The question stem and answer options stay visible for context.
Question
You have opened file1 in the vi editor. The contents of file1 is shown below: [root@server1 ~]# vi file1 green red pink blue green pink white green blue green blue green pink green At the vi editor command mode, you execute the following command to edit the contents of file 1: :1,$s/green/yellow/ What will be the result of this command?
Options
- AIt will search only the first line for all occurrences of the regex green and replace it with the word
- BIt will search the entire file for the first occurrence of the regex green and replace it with the word
- CIt will search only the first line for the first occurrence of the regex green and replace it with the
- DIt will search the entire file for all occurrences of the regular expression (regex) green and replace
Unlock 1Z0-409 to see the answer
You've previewed enough free 1Z0-409 questions. Unlock 1Z0-409 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.