200-901 · Question #613
Refer to the exhibit. What occurs when the script runs?
The correct answer is D. File differences are compared. The diff command is used to compare the contents of two files and display the differences. The -u option stands for "unified" and shows the differences in a unified format, which includes the lines that differ between the two files along with a few lines of context. When…
Question
Refer to the exhibit. What occurs when the script runs?
Options
- AThe contents of both files are displayed.
- BThe total length of the files is displayed.
- CThe files are combined.
- DFile differences are compared.
How the community answered
(24 responses)- A4% (1)
- C4% (1)
- D92% (22)
Explanation
The diff command is used to compare the contents of two files and display the differences. The -u option stands for "unified" and shows the differences in a unified format, which includes the lines that differ between the two files along with a few lines of context. When running the command diff -u file1.txt file2.txt, it compares the two files and shows the differences between them.
Topics
Community Discussion
No community discussion yet for this question.