CompTIA
XK0-004 · Question #419
XK0-004 Question #419: Real Exam Question with Answer & Explanation
Sign in or unlock XK0-004 to reveal the answer and full explanation for question #419. The question stem and answer options stay visible for context.
Question
An administrator needs to examine two text files and select identical lines from the files. Which of the following commands wooW BEST accomplish this task?
Options
- Acat report1 report2 | awk ' {print $2}' | wc -1
- Bcat report1 report2 | sort | uniq -d
- Ccat report1 report2 | grep -v < report1
- Dcat report1 report2 | sort -u | diff
Unlock XK0-004 to see the answer
You've previewed enough free XK0-004 questions. Unlock XK0-004 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.