In a diff output, what does a line starting with '<' denote?

Study for the OSCP Linux Exam. Use our flashcards and multiple-choice questions to test your skills. Each query comes with detailed hints and explanations to enhance your preparedness. Get ready to conquer the exam!

Multiple Choice

In a diff output, what does a line starting with '<' denote?

Explanation:
In a side-by-side diff, the left side represents the original file. A line that starts with a less-than sign is a line that exists in the original file at that spot. It shows what was there before the change, and you compare it to the corresponding line on the right (the updated file) to see what was added, removed, or changed. If there’s no matching line on the right, that original line was deleted; if there’s a different line on the right, that’s what replaced it.

In a side-by-side diff, the left side represents the original file. A line that starts with a less-than sign is a line that exists in the original file at that spot. It shows what was there before the change, and you compare it to the corresponding line on the right (the updated file) to see what was added, removed, or changed. If there’s no matching line on the right, that original line was deleted; if there’s a different line on the right, that’s what replaced it.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy