Zsh Shell Tutorial #14: Master File Operations

12views
1likes
0
11:59
T
Taught by Celeste AI - AI Coding Coach
View on YouTube
Description
Learn file operations in Zsh! This lesson covers reading files (line by line and full content), writing and appending data, file tests for existence and permissions, and directory operations with mkdir, cp, find, and globs. Source code: https://github.com/GoCelesteAI/zsh_file_operations Timestamps: 0:00 — Intro 0:25 — Reading Files Explained 0:59 — Reading Files Demo 2:46 — Writing Files Explained 3:20 — Writing Files Demo 5:16 — File Tests Explained 5:50 — File Tests Demo 8:04 — Directory Operations Explained 8:38 — Directory Operations Demo 10:27 — Recap 10:59 — End Topics covered: - Read entire file with $(file) - Read line by line with while-read - Count lines and words with wc - Search with grep - Write with (overwrite) - Append with - Here documents (heredoc) - Tee command for dual output - File existence tests (-e, -f, -d) - Permission tests (-r, -w, -x) - File size test (-s) - Create directories with mkdir -p - Copy directories with cp -r - Find files recursively - Glob patterns with ** Part of the Zsh Shell Tutorial series — subscribe for weekly lessons! Tags: zsh, zsh tutorial, zsh file operations, shell scripting, read files, write files, file tests, directory operations, heredoc, grep, find, glob patterns, shell tutorial, command line, terminal, linux, macos, beginner programming
Back to tutorials

Duration

11:59

Published

February 14, 2026

Added to Codegiz

March 15, 2026

Open in YouTube