1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/z.md
2017-08-10 18:50:04 +01:00

27 lines
507 B
Markdown

# z
> Tracks your most used directories and enable quick jumping using regexes from the command line.
- Go to a directory that contains foo:
`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 matching foo (from z database):
`z -l {{foo}}`
- Remove the current directory from the database:
`z -x .`