Skip to content
masterclass Buddy

Linux & Shell · Command

uniq

uniq reports or removes repeated adjacent lines. It can count groups, select duplicate or unique groups, and change how lines are compared.

Last updated

Syntax

uniq [ OPTION ]... [ INPUT [ OUTPUT ]]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • sort
  • comm
  • join

Source: uniq(1) - Linux manual page. Checked 2026-11-03.