CompTIA
XK0-006 · Question #105
A Linux administrator needs to compare two files and provide the output in the following format: 2,3d1 < Line 2 < Line 3 4a3 > Line 5 Which of the following commands should the administrator use to…
The correct answer is D. diff. This command compares two files line by line and produces output in the standard ed-style format, showing deletions and additions exactly as required.
System Configuration and Management
Question
A Linux administrator needs to compare two files and provide the output in the following format:
2,3d1 < Line 2 < Line 3 4a3 > Line 5 Which of the following commands should the administrator use to perform the task?
Options
- Acompgen
- Bawk
- Cfile
- Ddiff
How the community answered
(36 responses)- A6% (2)
- B3% (1)
- D92% (33)
Explanation
This command compares two files line by line and produces output in the standard ed-style format, showing deletions and additions exactly as required.
Topics
#diff#file comparison#command line tools#text output
Community Discussion
No community discussion yet for this question.