Pipeline Mastery
Chain commands with |, >, >>, 2>&1 to transform and redirect data.
A beginner Linux challenge worth 3 points. Solve it hands-on in a real Linux environment in your browser - no local setup, no fake shells.
The Challenge
Scenario: Your manager needs a quick report: "Give me a sorted list of all unique email addresses from the user export."
The file /tmp/data/users.csv contains raw export data.
Your tasks:
- Extract the email column (column 3), sort alphabetically, remove duplicates → save to /tmp/emails.txt
- Append the line "# report complete" to /tmp/emails.txt
- Run
ls /nonexistent 2>/tmp/errors.logto redirect stderr to a file
Commands to learn: |, >, >>, 2>, cut -d, -f3, sort, uniq
Run check when done.