Zsh Tutorial: Navigate Files Like a Pro | cd, pwd, ls Commands (Lesson 2)
20views
005:54
T
Taught by Celeste AI - AI Coding Coach
View on YouTubeDescription
๐ Learn to Navigate the File System in Zsh!
In Lesson 2 of our Zsh Shell Tutorial series, you'll master navigating directories on macOS. By the end, you'll move through your file system with confidence!
๐ What You'll Learn:
โโโโโโโโโโโโโโโโโโโโโ
โข The macOS file system hierarchy
โข pwd - Print Working Directory (know where you are)
โข cd - Change Directory (navigate anywhere)
โข ls - List files with useful options (-l, -a, -h)
โข Path shortcuts: ~, ., .., and -
โข Tab completion to save typing
โฑ๏ธ Timestamps:
โโโโโโโโโโโโโ
0:00 - Introduction
0:20 - File System Hierarchy
1:10 - pwd Command
1:40 - Navigation Demo
2:19 - ls Command
2:59 - Listing Files Demo
3:33 - Path Shortcuts
4:18 - Tab Completion
4:53 - Recap
5:23 - End Screen
๐ป Commands Covered:
โโโโโโโโโโโโโโโโโโโ
pwd - Print current directory
cd - Change directory
cd ~ - Go to home directory
cd .. - Go up one level
cd - - Go to previous directory
ls - List files
ls -l - Long format with details
ls -a - Show hidden files
ls -lah - All options combined
๐ Path Shortcuts:
โโโโโโโโโโโโโโโโโ
~ (tilde) - Home directory
. (dot) - Current directory
.. (double dot) - Parent directory
- (dash) - Previous directory
/ (slash) - Root directory
๐บ Series Playlist:
โโโโโโโโโโโโโโโโโโโ
This is Lesson 2 of our complete Zsh Shell Scripting series.
Subscribe and hit the bell to catch all 30 lessons!
Previous: Lesson 1 - Introduction to Zsh
Next: Lesson 3 - File Operations (touch, mkdir, cp, mv, rm)
#zsh #macos #terminal #shell #commandline #cd #pwd #ls #navigation #filesystem #tutorial #beginner
Back to tutorials๐ Read the articleOpen in YouTube
Duration
5:54
Published
January 8, 2026
Added to Codegiz
March 15, 2026