mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
30
tldr/az-cognitiveservices
Normal file
30
tldr/az-cognitiveservices
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# az cognitiveservices
|
||||
|
||||
> Manage Azure Cognitive Services accounts.
|
||||
> Part of `azure-cli` (also known as `az`).
|
||||
> More information: <https://learn.microsoft.com/cli/azure/cognitiveservices>.
|
||||
|
||||
- Create an API Cognitive Services account in a specific location without confirmation required:
|
||||
|
||||
`az cognitiveservices account create {{[-n|--name]}} {{account_name}} {{[-g|--resource-group]}} {{resource_group}} --kind {{API_name}} {{[-l|--location]}} {{location}} --sku {{sku_name}} --yes`
|
||||
|
||||
- List usages for Azure Cognitive Services account:
|
||||
|
||||
`az cognitiveservices account list-usage {{[-n|--name]}} {{account_name}} {{[-g|--resource-group]}} {{resource_group}}`
|
||||
|
||||
- Create a deployment for Azure Cognitive Services account:
|
||||
|
||||
`az cognitiveservices account deployment create {{[-n|--name]}} {{account_name}} {{[-g|--resource-group]}} {{resource_group}} --deployment-name {{deploy_name}} --model-name {{model_name}} --model-version "{{model_version}}" --model-format {{format_name}}`
|
||||
|
||||
- Create a commitment plan for Azure Cognitive Services account:
|
||||
|
||||
`az cognitiveservices account commitment-plan create {{[-n|--name]}} {{account_name}} {{[-g|--resource-group]}} {{resource_group}} --commitment-plan-name "{{plan_name}}" --hosting-model "{{hosting_model}}" --plan-type "{{plan_type}}" --auto-renew {{false|true}}`
|
||||
|
||||
- Delete a commitment plan from Azure Cognitive Services account:
|
||||
|
||||
`az cognitiveservices account commitment-plan delete {{[-g|--resource-group]}} {{resource_group}} {{[-n|--name]}} {{account_name}} --commitment-plan-name "{{plan_name}}"`
|
||||
38
tldr/chdman
Normal file
38
tldr/chdman
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# chdman
|
||||
|
||||
> Manage and convert CHD (Compressed Hunks of Data) images.
|
||||
> Commonly used with MAME and retro game images.
|
||||
> More information: <https://docs.mamedev.org/tools/chdman.html>.
|
||||
|
||||
- Create a CHD from a BIN/CUE pair (CD-ROM image):
|
||||
|
||||
`chdman createcd {{[-i|--input]}} {{path/to/file.cue}} {{[-o|--output]}} {{path/to/file.chd}}`
|
||||
|
||||
- Create a CHD from a raw hard drive image:
|
||||
|
||||
`chdman createhd {{[-i|--input]}} {{path/to/disk.img}} {{[-o|--output]}} {{path/to/disk.chd}}`
|
||||
|
||||
- Extract (decompress) a CHD back to BIN/CUE:
|
||||
|
||||
`chdman extractcd {{[-i|--input]}} {{path/to/file.chd}} {{[-o|--output]}} {{path/to/file.cue}}`
|
||||
|
||||
- Verify integrity of CHD file:
|
||||
|
||||
`chdman verify {{[-i|--input]}} {{path/to/file.chd}}`
|
||||
|
||||
- View CHD metadata information:
|
||||
|
||||
`chdman info {{[-i|--input]}} {{path/to/file.chd}}`
|
||||
|
||||
- Update a CHD file to the latest format version:
|
||||
|
||||
`chdman copy {{[-i|--input]}} {{path/to/old_file.chd}} {{[-o|--output]}} {{path/to/new_file.chd}}`
|
||||
|
||||
- Convert a compressed hard drive image to uncompressed (for editing):
|
||||
|
||||
`chdman extracthd {{[-i|--input]}} {{path/to/disk.chd}} {{[-o|--output]}} {{path/to/disk.img}}`
|
||||
33
tldr/linux/col
Normal file
33
tldr/linux/col
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# col
|
||||
|
||||
> Filter reverse line feeds from input.
|
||||
> More information: <https://manned.org/col>.
|
||||
|
||||
- Filter reverse line feeds from input:
|
||||
|
||||
`{{command}} | col`
|
||||
|
||||
- Filter reverse line feeds and output with spaces instead of tabs:
|
||||
|
||||
`{{command}} | col {{[-x|--spaces]}}`
|
||||
|
||||
- Remove backspaces, output only the last character written to each position:
|
||||
|
||||
`{{command}} | col {{[-b|--no-backspaces]}}`
|
||||
|
||||
- Specify a buffer size with a specific number of lines:
|
||||
|
||||
`{{command}} | col {{[-l|--lines]}} {{num}}`
|
||||
|
||||
- Format a manual page for viewing with `less`:
|
||||
|
||||
`man ls | col {{[-b|--no-backspaces]}} | less`
|
||||
|
||||
- Process a file with reverse line feeds and save the cleaned output:
|
||||
|
||||
`cat {{path/to/input_file}} | col {{[-x|--spaces]}} > {{output_file}}`
|
||||
42
tldr/linux/gdisk
Normal file
42
tldr/linux/gdisk
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gdisk
|
||||
|
||||
> GPT (GUID Partition Table) disk partitioning tool.
|
||||
> See also: `cfdisk`, `fdisk`, `parted`.
|
||||
> More information: <https://manned.org/gdisk>.
|
||||
|
||||
- List partitions:
|
||||
|
||||
`sudo gdisk {{[-l|--list]}}`
|
||||
|
||||
- Start the interactive partition manipulator:
|
||||
|
||||
`sudo gdisk {{/dev/sdX}}`
|
||||
|
||||
- Open a help menu:
|
||||
|
||||
`<?>`
|
||||
|
||||
- Print the [p]artition table:
|
||||
|
||||
`<p>`
|
||||
|
||||
- Add a [n]ew partition:
|
||||
|
||||
`<n>`
|
||||
|
||||
- Select a partition to [d]elete:
|
||||
|
||||
`<d>`
|
||||
|
||||
- [w]rite table to disk and exit:
|
||||
|
||||
`<w>`
|
||||
|
||||
- [q]uit without saving changes:
|
||||
|
||||
`<q>`
|
||||
25
tldr/linux/lstopo-no-graphics
Normal file
25
tldr/linux/lstopo-no-graphics
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# lstopo-no-graphics
|
||||
|
||||
> Manage and query hardware topology information.
|
||||
> More information: <https://manned.org/lstopo-no-graphics>.
|
||||
|
||||
- Display the machine topology in a tree format:
|
||||
|
||||
`lstopo-no-graphics`
|
||||
|
||||
- Display only physical cores (ignore logical processors):
|
||||
|
||||
`lstopo-no-graphics --only pu`
|
||||
|
||||
- Display the topology with physical indexes:
|
||||
|
||||
`lstopo-no-graphics {{[-p|--physical]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`lstopo-no-graphics {{[-h|--help]}}`
|
||||
25
tldr/linux/systemctl-reload-or-restart
Normal file
25
tldr/linux/systemctl-reload-or-restart
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl reload-or-restart
|
||||
|
||||
> Reload `systemd` unit(s) otherwise restart them.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#reload-or-restart%20PATTERN%E2%80%A6>.
|
||||
|
||||
- Reload or restart a unit:
|
||||
|
||||
`systemctl reload-or-restart {{unit}}`
|
||||
|
||||
- Reload or restart multiple units matching a pattern:
|
||||
|
||||
`systemctl reload-or-restart {{pattern}}`
|
||||
|
||||
- Run the command without waiting for the operation to complete:
|
||||
|
||||
`systemctl reload-or-restart {{unit}} --no-block`
|
||||
|
||||
- Apply the command only to user units:
|
||||
|
||||
`systemctl reload-or-restart {{unit}} --user`
|
||||
Reference in New Issue
Block a user