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.
Try the command
Find the path for 'docs'!
Build the command
zoxide query
--scoreDisplay the score alongside the path.
Terminal
C:\Users\User>zoxide query proj --list
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?
References
These documentation links provide authoritative details for the commands used in this article.