This is the lesson that ties everything together. Linux commands are small tools that each do one job — the magic is connecting them. Two ideas make that possible:
|) send one command's output straight into the next command as its input.> overwrite, >> append) or reads a file as input (<).Along the way you'll use sort (order lines) and uniq (collapse duplicates, and with -c, count them). Together these build the classic "sort | uniq -c" tally that every sysadmin knows.
Your projects folder has fruit.txt — a short list with repeated fruit names. Move into projects first.