mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
38 lines
797 B
Plaintext
38 lines
797 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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 `string` in the name:
|
|
|
|
`z string`
|
|
|
|
- Go to a directory that contains `string1` and then `string2`:
|
|
|
|
`z string1 string2`
|
|
|
|
- Go to the highest-ranked directory matching `string`:
|
|
|
|
`z -r string`
|
|
|
|
- Go to the most recently accessed directory matching `string`:
|
|
|
|
`z -t string`
|
|
|
|
- List all directories in `z`'s database matching `string`:
|
|
|
|
`z -l string`
|
|
|
|
- Remove the current directory from `z`'s database:
|
|
|
|
`z -x`
|
|
|
|
- Restrict matches to subdirectories of the current directory:
|
|
|
|
`z -c {{string}}`
|