Run cat data/ports.txt | sort | uniq.
cat data/ports.txt | sort | uniq
Read, sort, and count a training port list.
Text and logssortuniqwctail
Click any instruction for the command details, the why, and the common mistake to avoid.
Run cat data/ports.txt | sort | uniq.
cat data/ports.txt | sort | uniq
Run wc -l data/ports.txt.
wc -l data/ports.txt
Run tail -n 3 data/ports.txt.
tail -n 3 data/ports.txt
Create a free account to sync completed lessons, XP, streaks, course status, and your next lesson across sessions.
Checking account status...
Progress sync is idle.
Progress sync stores completion IDs, scores, streaks, badges, and game settings. Terminal contents, editor snippets, lab scratch, email, and real names are never published on leaderboards or share cards.
Use simple text tools on a small list.
Compare sorted unique output with the line count.
Admin work often includes tiny text inventories.
wc [-l] <file>
Count lines, words, and characters.
sort|uniq
Practice simple text pipelines.