Clipboard, Spotlight & Disk Tools from the Terminal — Zsh #28

8views
00
14:06
T
Taught by Celeste AI - AI Coding Coach
View on YouTube
Description
Learn 15 macOS-specific terminal commands in Zsh! This lesson covers system info with sw_vers and system_profiler, clipboard tricks with pbcopy and pbpaste, productivity tools like open, say, and caffeinate, Spotlight search with mdfind, and disk utilities with diskutil and hdiutil. Every command is demonstrated in a real script you can download and run on your Mac. 🔗 Source code: https://github.com/GoCelesteAI/zsh_macos_commands ⏱️ Timestamps: 0:00 — Intro 0:26 — System Info & Defaults Explained 1:11 — System Info & Defaults Demo 4:21 — Clipboard & Productivity Explained 5:06 — Clipboard & Productivity Demo 8:38 — Spotlight & Disk Utilities Explained 9:23 — Spotlight & Disk Utilities Demo 12:33 — Recap 13:15 — End 📋 Commands covered: • sw_vers — macOS version, build, and product name • system_profiler — hardware details (model, chip, memory) • scutil --get — computer name and local hostname • defaults read/write — query and change system preferences • pbcopy — copy text or command output to the clipboard • pbpaste — paste clipboard contents into pipelines • open — launch Finder, browsers, or apps • say — text-to-speech with voice selection • caffeinate — prevent your Mac from sleeping • screencapture — take screenshots from the terminal • mdfind — Spotlight search (faster than find) • mdls — inspect file metadata attributes • diskutil — list and inspect disk volumes • hdiutil — create, attach, and detach disk images (.dmg) 💻 Taught by CelesteAI 🎬 Part of the Zsh Shell Tutorial series — subscribe for weekly lessons! Tags: zsh, zsh tutorial, macos commands, macos terminal, pbcopy, pbpaste, mdfind, spotlight, diskutil, hdiutil, defaults, system_profiler, sw_vers, shell scripting, zsh scripting, mac, apple, macos terminal commands, clipboard terminal, beginner programming, command line, terminal

Tags

zshzsh tutorialmacos commandsmacos terminalpbcopypbpastemdfindspotlightdiskutilhdiutildefaultssystem_profilersw_versshell scriptingzsh scripting
Back to tutorials

Duration

14:06

Published

February 18, 2026

Added to Codegiz

March 15, 2026

Open in YouTube