mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-10 00:46:42 +00:00
Update cheatsheets
This commit is contained in:
26
tldr/ag
26
tldr/ag
@@ -8,30 +8,30 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> The Silver Searcher. Like `ack`, but aims to be faster.
|
||||
> More information: <https://manned.org/ag>.
|
||||
|
||||
- Find files containing "foo", and print the line matches in context:
|
||||
- Find files containing `string`, and print the line matches in context:
|
||||
|
||||
`ag foo`
|
||||
`ag string`
|
||||
|
||||
- Find files containing "foo" in a specific directory:
|
||||
- Find files containing `string` in a specific directory:
|
||||
|
||||
`ag foo {{path/to/directory}}`
|
||||
`ag string {{path/to/directory}}`
|
||||
|
||||
- Find files containing "foo", but only list the filenames:
|
||||
- Find files containing `string`, but only list the filenames:
|
||||
|
||||
`ag {{[-l|--files-with-matches]}} foo`
|
||||
`ag {{[-l|--files-with-matches]}} string`
|
||||
|
||||
- Find files containing "FOO" case-insensitively, and print only the match, rather than the whole line:
|
||||
- Find files containing `STRING` case-insensitively, and print only the match, rather than the whole line:
|
||||
|
||||
`ag {{[-i|--ignore-case]}} {{[-o|--only-matching]}} FOO`
|
||||
`ag {{[-i|--ignore-case]}} {{[-o|--only-matching]}} STRING`
|
||||
|
||||
- Find "foo" in files with a name matching "bar":
|
||||
- Find `string` in files with a name matching `file_name`:
|
||||
|
||||
`ag foo {{[-G|--file-search-regex]}} bar`
|
||||
`ag string {{[-G|--file-search-regex]}} file_name`
|
||||
|
||||
- Find files whose contents match a `regex`:
|
||||
|
||||
`ag '{{^ba(r|z)$}}'`
|
||||
`ag '{{^ca(t|r)$}}'`
|
||||
|
||||
- Find files with a name matching "foo":
|
||||
- Find files with a name matching `string`:
|
||||
|
||||
`ag {{[-g|--filename-pattern]}} foo`
|
||||
`ag {{[-g|--filename-pattern]}} string`
|
||||
|
||||
@@ -11,20 +11,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Download a blob to a file path specifying a source container:
|
||||
|
||||
`az storage blob download --account-name {{storage_account_name}} --account-key {{storage_account_key}} {{[-c|--container-name]}} {{container_name}} {{[-n|--name]}} {{path/to/blob}} {{[-f|--file]}} {{path/to/local_file}}`
|
||||
`az storage blob download --account-name {{account_name}} --account-key {{account_key}} {{[-c|--container-name]}} {{container_name}} {{[-n|--name]}} {{blob_name}} {{[-f|--file]}} {{path/to/file}}`
|
||||
|
||||
- Download blobs from a blob container recursively:
|
||||
|
||||
`az storage blob download-batch --account-name {{storage_account_name}} --account-key {{storage_account_key}} {{[-s|--source]}} {{container_name}} {{[-d|--destination]}} {{path/to/remote}} --pattern {{filename_regex}} {{[-d|--destination]}} {{path/to/destination}}`
|
||||
`az storage blob download-batch --account-name {{account_name}} --account-key {{account_key}} {{[-s|--source]}} {{container_name}} --pattern {{filename_regex}} {{[-d|--destination]}} {{path/to/destination}}`
|
||||
|
||||
- Upload a local file to blob storage:
|
||||
|
||||
`az storage blob upload --account-name {{storage_account_name}} --account-key {{storage_account_key}} {{[-c|--container-name]}} {{container_name}} {{[-n|--name]}} {{path/to/blob}} {{[-f|--file]}} {{path/to/local_file}}`
|
||||
`az storage blob upload --account-name {{account_name}} --account-key {{account_key}} {{[-c|--container-name]}} {{container_name}} {{[-n|--name]}} {{blob_name}} {{[-f|--file]}} {{path/to/file}}`
|
||||
|
||||
- Delete a blob object:
|
||||
|
||||
`az storage blob delete --account-name {{storage_account_name}} --account-key {{storage_account_key}} {{[-c|--container-name]}} {{container_name}} {{[-n|--name]}} {{path/to/blob}}`
|
||||
`az storage blob delete --account-name {{account_name}} --account-key {{account_key}} {{[-c|--container-name]}} {{container_name}} {{[-n|--name]}} {{blob_name}}`
|
||||
|
||||
- Generate a shared access signature for a blob:
|
||||
|
||||
`az storage blob generate-sas --account-name {{storage_account_name}} --account-key {{storage_account_key}} {{[-c|--container-name]}} {{container_name}} {{[-n|--name]}} {{path/to/blob}} --permissions {{permission_set}} --expiry {{Y-m-d'T'H:M'Z'}} --https-only`
|
||||
`az storage blob generate-sas --account-name {{account_name}} --account-key {{account_key}} {{[-c|--container-name]}} {{container_name}} {{[-n|--name]}} {{blob_name}} --permissions {{permission_set}} --expiry {{Y-m-d'T'H:M'Z'}} --https-only`
|
||||
|
||||
@@ -16,9 +16,9 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`csvtool {{[-c|--column]}} {{2,4}} {{path/to/file.csv}}`
|
||||
|
||||
- Extract lines from a CSV file where the second column exactly matches `Foo`:
|
||||
- Extract lines from a CSV file where the second column exactly matches `String`:
|
||||
|
||||
`csvtool {{[-c|--column]}} {{2}} {{[-s|--search]}} '{{^Foo$}}' {{path/to/file.csv}}`
|
||||
`csvtool {{[-c|--column]}} {{2}} {{[-s|--search]}} '{{^String$}}' {{path/to/file.csv}}`
|
||||
|
||||
- Extract lines from a CSV file where the second column starts with `Bar`:
|
||||
|
||||
|
||||
@@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Update metadata about a node, such as its availability, labels, or roles:
|
||||
|
||||
`docker node update --{{availability|role|label-add|...}} {{active|worker|foo|...}} {{node1}}`
|
||||
`docker node update --{{availability|role|label-add|...}} {{active|worker|...}} {{node1}}`
|
||||
|
||||
@@ -31,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Deepen current shallow branch by 2 commits:
|
||||
|
||||
`git fetch --deepen 2`
|
||||
|
||||
- Update the `main` branch without switching to it (equivalent to `git pull`):
|
||||
|
||||
`git fetch {{origin}} main:main`
|
||||
|
||||
42
tldr/ipinfo
Normal file
42
tldr/ipinfo
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ipinfo
|
||||
|
||||
> Official CLI for the IPinfo.io IP geolocation and network intelligence API.
|
||||
> Note: Some commands will require a token from IPinfo.io.
|
||||
> More information: <https://github.com/ipinfo/cli#quick-start>.
|
||||
|
||||
- Display details for your current IP address:
|
||||
|
||||
`ipinfo myip`
|
||||
|
||||
- Display details for a specific IP address:
|
||||
|
||||
`ipinfo {{ip_address}}`
|
||||
|
||||
- Display details for multiple IP addresses in bulk from a file:
|
||||
|
||||
`ipinfo bulk {{path/to/ips.txt}}`
|
||||
|
||||
- Display details for a CIDR or IP range:
|
||||
|
||||
`ipinfo bulk {{cidr_range}}`
|
||||
|
||||
- Display only specific fields from IP lookup results:
|
||||
|
||||
`ipinfo {{ip_address}} {{[-f|--field]}} {{hostname,country,org}}`
|
||||
|
||||
- Summarize details for a group of IP addresses:
|
||||
|
||||
`ipinfo summarize {{path/to/ips.txt}}`
|
||||
|
||||
- Extract IP addresses from text and highlight them:
|
||||
|
||||
`ipinfo grepip {{path/to/file.txt}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`ipinfo {{[-h|--help]}}`
|
||||
@@ -16,10 +16,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`lsb_release {{[-d|--description]}}`
|
||||
|
||||
- Print only the operating system name (ID), suppressing the field name:
|
||||
- Print only the operating system name (ID), in short format (omitting the field name):
|
||||
|
||||
`lsb_release {{[-is|--id --short]}}`
|
||||
|
||||
- Print the release number and codename of the distribution, suppressing the field names:
|
||||
- Print the release number and codename of the distribution, in short format:
|
||||
|
||||
`lsb_release {{[-rcs|--release --codename --short]}}`
|
||||
|
||||
34
tldr/linux/mako
Normal file
34
tldr/linux/mako
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# mako
|
||||
|
||||
> Notification daemon for Wayland compositors.
|
||||
> Can be controlled with `makoctl`.
|
||||
> More information: <https://manned.org/mako>.
|
||||
|
||||
- Start the `mako` notification daemon:
|
||||
|
||||
`mako`
|
||||
|
||||
- Start with a custom configuration file:
|
||||
|
||||
`mako {{[-c|--config]}} {{path/to/config}}`
|
||||
|
||||
- Set maximum number of visible notifications:
|
||||
|
||||
`mako --max-visible {{5}}`
|
||||
|
||||
- Set default timeout in milliseconds (0 to disable):
|
||||
|
||||
`mako --default-timeout {{2000}}`
|
||||
|
||||
- Group notifications by application name:
|
||||
|
||||
`mako --group-by {{app_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`mako {{[-h|--help]}}`
|
||||
30
tldr/linux/makoctl
Normal file
30
tldr/linux/makoctl
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# makoctl
|
||||
|
||||
> Control the `mako` notification daemon.
|
||||
> Some subcommands such as `dismiss`, `invoke`, and `mode` have their own usage documentation.
|
||||
> More information: <https://manned.org/makoctl>.
|
||||
|
||||
- List all current notifications:
|
||||
|
||||
`makoctl list`
|
||||
|
||||
- List notification history:
|
||||
|
||||
`makoctl history`
|
||||
|
||||
- Reload the configuration file:
|
||||
|
||||
`makoctl reload`
|
||||
|
||||
- Restore the most recently expired notification from history:
|
||||
|
||||
`makoctl restore`
|
||||
|
||||
- Display help:
|
||||
|
||||
`makoctl help`
|
||||
29
tldr/linux/makoctl-dismiss
Normal file
29
tldr/linux/makoctl-dismiss
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# makoctl dismiss
|
||||
|
||||
> Dismiss notifications in `mako`.
|
||||
> More information: <https://manned.org/makoctl>.
|
||||
|
||||
- Dismiss the most recent notification:
|
||||
|
||||
`makoctl dismiss`
|
||||
|
||||
- Dismiss a specific notification by ID:
|
||||
|
||||
`makoctl dismiss -n {{notification_id}}`
|
||||
|
||||
- Dismiss all notifications:
|
||||
|
||||
`makoctl dismiss {{[-a|--all]}}`
|
||||
|
||||
- Dismiss all notifications in the first group:
|
||||
|
||||
`makoctl dismiss {{[-g|--group]}}`
|
||||
|
||||
- Dismiss without adding to history:
|
||||
|
||||
`makoctl dismiss {{[-h|--no-history]}}`
|
||||
17
tldr/linux/makoctl-invoke
Normal file
17
tldr/linux/makoctl-invoke
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# makoctl invoke
|
||||
|
||||
> Invoke actions on notifications in `mako`.
|
||||
> More information: <https://manned.org/makoctl>.
|
||||
|
||||
- Invoke the default action on the most recent notification:
|
||||
|
||||
`makoctl invoke`
|
||||
|
||||
- Invoke a specific action on a notification (if not specified, default is used):
|
||||
|
||||
`makoctl invoke -n {{notification_id}} {{action_name}}`
|
||||
30
tldr/linux/makoctl-mode
Normal file
30
tldr/linux/makoctl-mode
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# makoctl mode
|
||||
|
||||
> Manage notification modes in `mako`.
|
||||
> Modes can be used to change notification behavior (e.g., do-not-disturb).
|
||||
> More information: <https://manned.org/makoctl>.
|
||||
|
||||
- List all currently active modes:
|
||||
|
||||
`makoctl mode`
|
||||
|
||||
- Add a mode:
|
||||
|
||||
`makoctl mode -a {{do-not-disturb}}`
|
||||
|
||||
- Remove a mode:
|
||||
|
||||
`makoctl mode -r {{do-not-disturb}}`
|
||||
|
||||
- Toggle a mode (add if absent, remove if present):
|
||||
|
||||
`makoctl mode -t {{do-not-disturb}}`
|
||||
|
||||
- Set specific modes, replacing all current modes:
|
||||
|
||||
`makoctl mode -s {{mode1 mode2 ...}}`
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Test Management Tool for creating, running, and debugging tests.
|
||||
> Some subcommands such as `run`, `try`, etc. have their own usage documentation.
|
||||
> More information: <https://tmt.readthedocs.io>.
|
||||
> More information: <https://tmt.readthedocs.io/en/stable/examples.html>.
|
||||
|
||||
- List available tests, plans, and stories:
|
||||
|
||||
@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a new test with a template and a link:
|
||||
|
||||
`tmt test create --template {{beakerlib}} --link {{verifies:issue#1234}}`
|
||||
`tmt test create {{[-t|--template]}} {{beakerlib}} --link {{verifies:issue#1234}}`
|
||||
|
||||
- List available tests, plans, or stories:
|
||||
|
||||
@@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show detailed test metadata in the given context:
|
||||
|
||||
`tmt --context {{arch=aarch64}} test show`
|
||||
`tmt {{[-c|--context]}} {{arch=aarch64}} test show`
|
||||
|
||||
- Validate tmt files against the specification:
|
||||
|
||||
@@ -35,7 +35,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Use filter:
|
||||
|
||||
`tmt tests ls --filter {{tag:foo}} --filter {{tier:0}}`
|
||||
`tmt tests ls {{[-f|--filter]}} {{tag:foo}} {{[-f|--filter]}} {{tier:0}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# tmt run
|
||||
|
||||
> Execute tmt test steps. By default, all steps are run.
|
||||
> More information: <https://tmt.readthedocs.io/en/stable/overview.html#run>.
|
||||
> Execute `tmt` test steps. By default, all steps are run.
|
||||
> More information: <https://tmt.readthedocs.io/en/stable/stories/cli.html#run>.
|
||||
|
||||
- Run all test steps for each plan:
|
||||
|
||||
@@ -14,28 +14,28 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run only the discover step to show what tests would be run:
|
||||
|
||||
`tmt run discover -v`
|
||||
`tmt run discover {{[-v|--verbose]}}`
|
||||
|
||||
- Run all steps and adjust the provision step options:
|
||||
|
||||
`tmt run --all provision --how {{container}} --image {{fedora:rawhide}}`
|
||||
`tmt run {{[-a|--all]}} provision {{[-h|--how]}} {{container}} {{[-i|--image]}} {{fedora:rawhide}}`
|
||||
|
||||
- Run only selected plans and tests:
|
||||
|
||||
`tmt run plan --name {{/plan/name}} test --name {{/test/name}}`
|
||||
`tmt run plan {{[-n|--name]}} {{/plan/name}} test {{[-n|--name]}} {{/test/name}}`
|
||||
|
||||
- Show results from the last run in a web browser:
|
||||
|
||||
`tmt run --last report --how {{html}} --open`
|
||||
`tmt run {{[-l|--last]}} report {{[-h|--how]}} {{html}} {{[-o|--open]}}`
|
||||
|
||||
- Run tests with the provided context:
|
||||
|
||||
`tmt run --context {{key=value}} -c {{distro=fedora}}`
|
||||
`tmt run {{[-c|--context]}} {{key=value}} {{[-c|--context]}} {{distro=fedora}}`
|
||||
|
||||
- Run tests interactively (debug test code in the middle of a test):
|
||||
|
||||
`tmt run --all execute --how {{tmt}} --interactive`
|
||||
`tmt run {{[-a|--all]}} execute {{[-h|--how]}} {{tmt}} --interactive`
|
||||
|
||||
- Use dry mode to see what actions would happen and use the highest verbosity:
|
||||
|
||||
`tmt run --dry -vvv`
|
||||
`tmt run {{[-n|--dry]}} {{[-vvv|--verbose --verbose --verbose]}}`
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run a test in the current working directory:
|
||||
|
||||
`cd {{path/to/test}} && tmt try`
|
||||
`cd {{path/to/test_directory}} && tmt try`
|
||||
|
||||
- Use a specific operating system:
|
||||
|
||||
@@ -26,15 +26,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Select tests with custom filter:
|
||||
|
||||
`tmt try --test {{feature}}`
|
||||
`tmt try {{[-t|--test]}} {{feature}}`
|
||||
|
||||
- Provision guest and wait for instructions:
|
||||
|
||||
`tmt try --ask`
|
||||
`tmt try {{[-a|--ask]}}`
|
||||
|
||||
- Directly log into the guest without asking:
|
||||
|
||||
`tmt try --login`
|
||||
`tmt try {{[-l|--login]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Expose a local HTTP service on a specific host:
|
||||
|
||||
`ngrok http {{foo.dev}}:{{80}}`
|
||||
`ngrok http {{example.com}}:{{80}}`
|
||||
|
||||
- Expose a local HTTPS server:
|
||||
|
||||
|
||||
@@ -15,4 +15,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Use the contents of the clipboard as input to a command:
|
||||
|
||||
`pbpaste | grep foo`
|
||||
`pbpaste | {{grep search_string}}`
|
||||
|
||||
@@ -8,21 +8,21 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Manipulate text files of various formats.
|
||||
> More information: <https://keith.github.io/xcode-man-pages/textutil.1.html>.
|
||||
|
||||
- Display information about `foo.rtf`:
|
||||
- Display information about `file.rtf`:
|
||||
|
||||
`textutil -info {{path/to/foo.rtf}}`
|
||||
`textutil -info {{path/to/file.rtf}}`
|
||||
|
||||
- Convert `foo.rtf` into `foo.html`:
|
||||
- Convert `file.rtf` into `file.html`:
|
||||
|
||||
`textutil -convert {{html}} {{path/to/foo.rtf}}`
|
||||
`textutil -convert html {{path/to/file.rtf}}`
|
||||
|
||||
- Convert rich text to normal text:
|
||||
|
||||
`textutil {{path/to/foo.rtf}} -convert {{txt}}`
|
||||
`textutil {{path/to/file.rtf}} -convert txt`
|
||||
|
||||
- Convert `foo.txt` into `foo.rtf`, using Times 10 for the font:
|
||||
- Convert `file.txt` into `file.rtf`, using Times 10 for the font:
|
||||
|
||||
`textutil -convert {{rtf}} -font {{Times}} -fontsize {{10}} {{path/to/foo.txt}}`
|
||||
`textutil -convert rtf -font Times -fontsize 10 {{path/to/file.txt}}`
|
||||
|
||||
- Load all RTF files in the current directory, concatenates their contents, and writes the result out as `index.html` with the HTML title set to "Several Files":
|
||||
|
||||
|
||||
@@ -16,9 +16,9 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`pdfgrep {{[-H|--with-filename]}} {{[-n|--page-number]}} {{pattern}} {{file.pdf}}`
|
||||
|
||||
- Do a case-insensitive search for lines that begin with "foo" and return the first 3 matches:
|
||||
- Do a case-insensitive search for lines that begin with `file_name` and return the first 3 matches:
|
||||
|
||||
`pdfgrep {{[-m|--max-count]}} {{3}} {{[-i|--ignore-case]}} '{{^foo}}' {{file.pdf}}`
|
||||
`pdfgrep {{[-m|--max-count]}} {{3}} {{[-i|--ignore-case]}} '{{^file_name}}' {{file.pdf}}`
|
||||
|
||||
- Find pattern in files with a `.pdf` extension in the current directory recursively:
|
||||
|
||||
|
||||
@@ -27,4 +27,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Speak twice as fast, with huge gaps between sentences:
|
||||
|
||||
`echo {{Speaking twice the speed. With added drama!}} | piper -m {{foo.onnx}} --length_scale {{0.5}} --sentence_silence {{2}} -f {{drama.wav}}`
|
||||
`echo {{Speaking twice the speed. With added drama!}} | piper -m {{file.onnx}} --length_scale {{0.5}} --sentence_silence {{2}} -f {{drama.wav}}`
|
||||
|
||||
38
tldr/windows/pnputil
Normal file
38
tldr/windows/pnputil
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pnputil
|
||||
|
||||
> Manage the driver store and driver packages on Windows.
|
||||
> Requires an elevated Command Prompt.
|
||||
> More information: <https://learn.microsoft.com/windows-hardware/drivers/devtest/pnputil-command-syntax>.
|
||||
|
||||
- List all installed driver packages:
|
||||
|
||||
`pnputil /enum-drivers`
|
||||
|
||||
- Install a driver package from an INF file:
|
||||
|
||||
`pnputil /add-driver {{path o\driver.inf}}`
|
||||
|
||||
- Add and install all INF files in a folder (including subdirectories):
|
||||
|
||||
`pnputil /add-driver {{path oolder\*.inf}} /subdirs`
|
||||
|
||||
- Delete a driver package using its published name:
|
||||
|
||||
`pnputil /delete-driver {{oemXX.inf}}`
|
||||
|
||||
- Install a driver package using its published name:
|
||||
|
||||
`pnputil /add-driver {{oemXX.inf}}`
|
||||
|
||||
- Export all driver packages to a folder:
|
||||
|
||||
`pnputil /export-driver * {{path oolder}}`
|
||||
|
||||
- List all devices:
|
||||
|
||||
`pnputil /enum-devices`
|
||||
22
tldr/z
22
tldr/z
@@ -8,25 +8,25 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> 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:
|
||||
- Go to a directory that contains `string` in the name:
|
||||
|
||||
`z {{foo}}`
|
||||
`z string`
|
||||
|
||||
- Go to a directory that contains "foo" and then "bar":
|
||||
- Go to a directory that contains `string1` and then `string2`:
|
||||
|
||||
`z {{foo}} {{bar}}`
|
||||
`z string1 string2`
|
||||
|
||||
- Go to the highest-ranked directory matching "foo":
|
||||
- Go to the highest-ranked directory matching `string`:
|
||||
|
||||
`z -r {{foo}}`
|
||||
`z -r string`
|
||||
|
||||
- Go to the most recently accessed directory matching "foo":
|
||||
- Go to the most recently accessed directory matching `string`:
|
||||
|
||||
`z -t {{foo}}`
|
||||
`z -t string`
|
||||
|
||||
- List all directories in `z`'s database matching "foo":
|
||||
- List all directories in `z`'s database matching `string`:
|
||||
|
||||
`z -l {{foo}}`
|
||||
`z -l string`
|
||||
|
||||
- Remove the current directory from `z`'s database:
|
||||
|
||||
@@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Restrict matches to subdirectories of the current directory:
|
||||
|
||||
`z -c {{foo}}`
|
||||
`z -c {{string}}`
|
||||
|
||||
@@ -9,13 +9,13 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Uses a ranking algorithm to navigate to the best match.
|
||||
> More information: <https://github.com/ajeetdsouza/zoxide>.
|
||||
|
||||
- Go to the highest-ranked directory that contains "foo" in the name:
|
||||
- Go to the highest-ranked directory that contains `string` in the name:
|
||||
|
||||
`zoxide query {{foo}}`
|
||||
`zoxide query string`
|
||||
|
||||
- Go to the highest-ranked directory that contains "foo" and then "bar":
|
||||
- Go to the highest-ranked directory that contains `string1` and then `string2`:
|
||||
|
||||
`zoxide query {{foo}} {{bar}}`
|
||||
`zoxide query string1 string2`
|
||||
|
||||
- Start an interactive directory search (requires `fzf`):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user