Multiple choice technology architecture

What will the uniq Command [$uniq –d file] does ?

  1. Non repeated line

  2. Repeated line

  3. Counting the frequency of the line

  4. None.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

uniq -d displays only duplicate lines (lines that appear more than once). This is different from -u (unique only), -c (count occurrences), or default behavior (remove consecutive duplicates). -d filters to show only repeated entries.