•Arnošt Havelka
Zoxide Query
Testing matches without moving.
Start Interactive LessonSometimes you don't want to go there; you just want to know where "there" is. The zoxide query command returns the path that matches your search term without changing directories.
Try the command
Find the path for 'docs'!
Build the command
zoxide
Terminal
C:\Users\Student>zoxide query docs
C:\Users\Student\Docs
Real-World Examples
1. Finding where a folder is located
"I know I have a folder called 'budget', but where is it?"
Terminal
C:\Users\Student>zoxide query budget
2. Scripting with Zoxide
You can use zoxide query inside scripts to dynamically find paths.
mkdir C:\Users\User\Projects\myproj 2>nul
zoxide add C:\Users\User\Projects\myproj
for /f "tokens=*" %%i in ('zoxide query myproj') do cd /d "%%i"
Knowledge Check
1 / 2Does 'zoxide query' change your directory?
References
These documentation links provide authoritative details for the commands used in this article.
Up Next
Zoxide Add
Manually add directories to the database.