COMMAND-LINE-BASICS5 MIN READ
Sort Pipes and Redirects by What They Route
Categorize common shell routing operators by whether they pipe, overwrite, append, or route errors.
sort buckets score chips common-trap callout Place each operator or command fragment in the routing behavior it primarily performs. Pipe to next command Overwrite stdout file Append stdout file Route stderr Merge streams grep ERROR app.log | wc -l cat names.txt | sort ls > files.txt date > run.log date >> run.log echo done >> status.log ./check 2> errors.log grep x missing.txt 2>> errors.log
Read the full lesson
Sign up free — one personalized lesson every day, matched to your role and goals.
Already have an account? Sign in