mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-03 16:55:13 +00:00
Update cheatsheets
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user