1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-07 16:35:42 +02:00
tldr/pages/common/z.md
Managor ba6daef39d
*: standardize regex usage (#17328)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
2025-07-25 08:50:06 +03:00

32 lines
685 B
Markdown

# z
> Tracks the most used (by frequency) directories and enables quickly navigating to them using string patterns or `regex`.
> More information: <https://github.com/rupa/z>.
- Go to a directory that contains "foo" in the name:
`z {{foo}}`
- Go to a directory that contains "foo" and then "bar":
`z {{foo}} {{bar}}`
- Go to the highest-ranked directory matching "foo":
`z -r {{foo}}`
- Go to the most recently accessed directory matching "foo":
`z -t {{foo}}`
- List all directories in `z`'s database matching "foo":
`z -l {{foo}}`
- Remove the current directory from `z`'s database:
`z -x`
- Restrict matches to subdirectories of the current directory:
`z -c {{foo}}`