Zoxide Query
Sometimes 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.
Usage:zoxide query
[keywords]
[--list]
--list
List all matching directories instead of just the top one.
--score
Display the score alongside the path.
Real-World Examples
1. Finding where a folder is located
"I know I have a folder called 'budget', but where is it?"
Command Prompt
C:\Users\User>zoxide query budget
2. Scripting with Zoxide
You can use zoxide query inside scripts to dynamically find paths.
for /f "tokens=*" %%i in ('zoxide query myproj') do cd "%%i"
Knowledge Check
1 / 2Does 'zoxide query' change your directory?