Multiple choice

Which command is used to remove the duplicate adjacent lines from a file?

  1. cut

  2. uniq

  3. which

  4. none of these

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

The 'uniq' command removes the duplicate adjacent lines from a file.