Multiple choice technology programming languages

uniq command removes duplicate adjacent lines from sorted file?

  1. True

  2. False

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

The Unix uniq command detects and filters out adjacent duplicate lines from a file. Since it only compares consecutive lines, the input must be sorted for the command to remove all duplicate lines.