Last Updated:

⚡️ Jump Smarter, Not Harder: A Beginner’s Guide to zoxide

ꓜꓟеꓝ☠
ꓜꓟеꓝ☠ cyber

 

Written with ChatGPT — my shell sidekick and dotfile demon slayer.

You know what’s exhausting? Typing cd ~/Documents/Projects/Some/Deeply/Nested/Folder for the 47th time in one day. If you’re like me—and I know you are, because you’re reading this—you want your shell life to be slick, fast, and maybe even a little magical.

Enter zoxide: a smarter cd that learns where you go most and lets you teleport there with minimal effort. It’s cd with a memory, a sixth sense, and no nonsense.

Let’s break it down.

🛠️ Installing zoxide
It’s available everywhere good software hangs out.

Debian/Ubuntu:

sudo apt install zoxide
Fedora:


sudo dnf install zoxide
Arch Linux:

sudo pacman -S zoxide

macOS/Linux (via Homebrew):


brew install zoxide

🧬 Shell Setup
You need to hook it into your shell config file so it can override cd (or let you use z instead).

For bash or zsh:

eval "$(zoxide init zsh)"    # or bash
Add that to ~/.bashrc or ~/.zshrc, then:


source ~/.zshrc
For fish:

zoxide init fish | source
Then you’re good to go.

🚀 Usage: Become a Directory Wizard
🔍 z <search>

z projects
Boom. You’re in ~/Documents/Projects if that’s where you hang out the most. zoxide tracks your most-used directories and gets smarter the more you use it.

💥 zi (Interactive Mode)
If you have fzf installed:


zi
This opens a fuzzy menu of all your directories. Pick one. Bam. You’re there.

📂 Replace cd Entirely?
You savage:


alias cd='z'
Suddenly, cd is better.

🧠 Bonus Commands
Want to explore the brain of zoxide?


zoxide query
This shows you all tracked directories.

Need to clean up something outdated?


zoxide remove ~/dead-folder
Good riddance.

🧪 Sample Session

cd ~/code/linux-kernel/hacks/magic
z kernel     # Goes back there fast.
z code       # Could take you to ~/code or ~/Documents/code depending on usage.
It’s based on frecency (frequency + recency). Just like your browser history—but less embarrassing.

📝 TL;DR Cheatsheet
Command                                        What It Does
z foo                                 Jump to a frequently visited dir matching "foo"
zi                                    Open interactive dir picker with fzf
zoxide query                        List known paths
zoxide remove                  Remove a directory from history
alias cd='z'                   Make cd smarter by default

🌱 Final Thoughts
zoxide is one of those tools that, once installed, becomes invisible—but you'll feel it when it’s gone. It makes terminal life feel frictionless, like your shell suddenly understands you.

You want productivity?
You want minimal keystrokes?
You want your shell to read your mind?

You want zoxide.



If this helped you, go star zoxide on GitHub and say thanks to @ajeetdsouza for building it. Then come back and tell me what other tools you want me to blog about next. 😎

✌️ & z,
Zack

ꓜꓟеꓝ☠

ꓜꓟеꓝ☠

Zac Fosdyck | Cyber Resilience | Open Source Advocate | Regenerative Systems
Welcome. I’m Zac Fosdyck, an Illinois-based cyber resilience professional, educator, and open source strategist dedicated to advancing resilient, ethical, and sustainable technology.

About Me
I bring a multidisciplinary perspective to the world of cyber resilience—combining business acumen, technical expertise, and a commitment to lifelong learning. My journey bridges food service management, higher education, and the technical complexities of information security, with a focus on Free/Libre Open Source Software (FLOSS) and community-driven solutions.

What I Do
Cyber Resilience Leadership:
Certified in Security+, Cloud+, Linux+, and CompTIA Secure Cloud Professional (CSCP), I specialize in building, hardening, and monitoring Linux-based infrastructures, conducting risk and gap assessments, and mentoring newcomers to the field.

Regenerative Management:
I incorporate holistic and regenerative principles into both technology and organizational systems, advocating for stewardship, sustainability, and the integration of social good with technical progress.

Education & Community:
As a co-founder of Grass Roots Cyber, I develop accessible cyber resilience resources and live educational content, demystifying complex topics and empowering individuals and small businesses to defend themselves effectively.

Research & Innovation:
My work explores the intersection of cyber resilience, decentralized technologies (blockchain, dApps), and the ethical use of AI—seeking practical tools that respect privacy, agency, and community resilience.

Why Work With Me?
Strategic Vision:
I align technical projects with broader organizational and social objectives, ensuring technology serves people—not the other way around.

Commitment to Open Source:
I champion transparent, collaborative, and adaptable solutions that lower barriers to entry and foster true innovation.

Ethical Perspective:
Integrity, responsibility, and a learner’s mindset are at the core of my practice. I help organizations navigate complexity, uncertainty, and change with confidence.

Let’s Connect
If you’re seeking a cyber resilience leader with both technical depth and big-picture perspective—or want to collaborate on projects that blend technology, education, and regenerative impact—I invite you to explore my portfolio, review my open source contributions, and get in touch.