Pipes & Redirection in Zsh — Complete Guide for Beginners #16
9views
0011:04
T
Taught by Celeste AI - AI Coding Coach
View on YouTubeDescription
Learn pipes and redirection in Zsh! This lesson covers stdin/stdout/stderr streams, the pipe operator for chaining commands, output redirection with ,
error redirection here documents, here strings, and the tee command for dual output.
🔗 Source code: https://github.com/GoCelesteAI/zsh_pipes_redirection
⏱️ Timestamps:
0:00 — Intro
0:25 — Streams & Pipes Explained
0:59 — Streams & Pipes Demo
2:54 — Output Redirection Explained
3:28 — Output Redirection Demo
5:23 — Error Redirection Explained
5:57 — Error Redirection Demo
7:52 — Here Documents & tee Explained
8:26 — Here Documents & tee Demo
10:21 — Recap
10:53 — End
📋 Topics covered:
• Standard streams: stdin (fd 0), stdout (fd 1), stderr (fd 2)
• Pipe operator | to chain commands
• Chaining multiple pipes for data pipelines
• Overwrite files with redirection
• Append to files with redirection
• Discard output with /dev/null
• Prevent overwrites with noclobber and
• Redirect stderr with 2
• Merge stderr into stdout with
• Redirect all output with &
• Separate stdout and stderr to different files
• Here documents with EOF
• Here strings with
• Dual output with tee and tee -a
Tags
zshzsh tutorialzsh pipeszsh redirectionshell scriptingpipe operatorstdoutstderrstdinoutput redirectionerror redirectionheredochere documenthere stringtee command
Back to tutorialsOpen in YouTube
Duration
11:04
Published
February 16, 2026
Added to Codegiz
March 15, 2026