Intermediate Linux & Shell Scripting
Q67 / 100

What is the purpose of "diff" command, and what does its typical output represent?

Correct! Well done.

Incorrect.

The correct answer is A) "diff file1 file2" compares the contents of two files line by line and outputs the differences, showing which lines need to be added, removed, or changed to transform one file into the other

A

Correct Answer

"diff file1 file2" compares the contents of two files line by line and outputs the differences, showing which lines need to be added, removed, or changed to transform one file into the other

Explanation

"diff" produces output describing line-by-line differences between two files, often used to review code changes or generate patch files that can be applied with the "patch" command.

Progress
67/100