Sorting lines

Distinguish sorting from adjacent duplicate removal.

Power User

Lesson goal

Distinguish sorting from adjacent duplicate removal.

How it works

sort orders lines; uniq removes adjacent duplicate lines. The simulation reads one file and leaves it unchanged.

sort notes/first.txt
uniq notes/first.txt

Try it

Run the commands and compare output order.

Check your understanding

What does uniq do?

All lessons
Search Linux DNA

DNA / GUIDANCE

Tux

Hi! Choose your goal and I’ll guide you to the right section.

Local guidance, no external AI or data collection.