Linux · November 7, 2026 uniq Command on Linux: Count Duplicate Lines (with sort) Use uniq on Linux after sort: uniq -c count repeats, -d show duplicates only, -u unique lines, skip… Read tutorial →