Zsh Tutorial: find & fd — Search Your Filesystem Fast #21
120views
0011:31
T
Taught by Celeste AI - AI Coding Coach
View on YouTubeDescription
Learn how to find files in Zsh! This lesson covers the find command with -name, -iname, -type, -size, -mtime, combining criteria, -exec per file and batch mode,
find | xargs with -print0 for safe handling, -delete with preview, and fd as a modern faster alternative with regex, .gitignore awareness, and simpler syntax.
🔗 Source code: https://github.com/GoCelesteAI/zsh_finding_files
⏱️ Timestamps:
0:00 — Intro
0:26 — Finding by Attributes Explained
1:06 — Finding by Attributes Demo
3:42 — Taking Action Explained
4:22 — Taking Action Demo
7:04 — fd Modern Alternative Explained
7:42 — fd Modern Alternative Demo
10:18 — Recap
11:00 — End
📋 Topics covered:
• find -name: search by filename pattern
• find -iname: case-insensitive name search
• find -type f/d: filter by file or directory
• find -size: search by file size (+10k, -1M)
• find -mtime: search by modification time
• Combining multiple find criteria (AND logic)
• find -exec {} \;: run command on each file
• find -exec {} +: batch mode (faster)
• find | xargs: pipe results for processing
• -print0 and xargs -0: handle spaces in filenames
• find -delete: remove matched files (preview first!)
• fd: modern find alternative
• fd -e: filter by extension
• fd -t: filter by type
• fd regex: regex patterns by default
• fd -x: execute command on matches
• fd -E: exclude patterns
• fd --no-ignore: include gitignored files
• fd .gitignore awareness
🎬 Part of the Zsh Shell Tutorial series — subscribe for weekly lessons!
Tags
zsh, zsh tutorial, find command, fd, find files, file search, find -exec, find -name, find -type, find -size, find -mtime, xargs, find delete, fd command,
modern find, shell scripting, command line, terminal, linux, macos, beginner programming
Back to tutorialsOpen in YouTube
Duration
11:31
Published
February 17, 2026
Added to Codegiz
March 15, 2026