OSCP Linux Practice Exam

Access More Questions
If a diff shows '2,4c2,4', what does this indicate about the change?
Correct Answer:
Replace lines 2-4 in the original with lines 2-4 from the new file
Explanation:
In diff notation, a change operation signals that a section of the original file is being replaced by content from the new file. The two ranges show which parts are involved: the portion from the original that will be replaced, and the portion from the new file that will replace it. So a change instruction means you take the specified block from the new file and substitute it for the corresponding block in the original. It is not an append or a simple delete, and there isn’t a separate copy operation here. This is why the interpretation is that the original segment is replaced by the new content.

Access more questions from this quiz

Continue to OSCP Linux Practice Exam for more practice questions and the full quiz experience.

Access More Questions