1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 17:02:09 +02:00
tldr/pages/common/z.md
2017-09-14 09:58:50 +05:30

27 lines
541 B
Markdown

# z
> Tracks the most used directories and enables quickly navigating to them using string or regex patterns.
- 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 .`