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:
@@ -19,3 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Display results on a single line to reduce spacing:
|
||||
|
||||
`fast --single-line`
|
||||
|
||||
- Display complete results - download/upload speeds, latency, and ISP info:
|
||||
|
||||
`fast --verbose`
|
||||
|
||||
12
tldr/gh-agent
Normal file
12
tldr/gh-agent
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gh agent
|
||||
|
||||
> This command is an alias of `gh agent-task`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr gh agent-task`
|
||||
29
tldr/gh-agent-task
Normal file
29
tldr/gh-agent-task
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gh agent-task
|
||||
|
||||
> Manage GitHub agent tasks.
|
||||
> More information: <https://cli.github.com/manual/gh_agent-task>.
|
||||
|
||||
- List the most recent agent tasks:
|
||||
|
||||
`gh {{[agent|agent-task]}} list`
|
||||
|
||||
- Create a new agent task for the current repository:
|
||||
|
||||
`gh {{[agent|agent-task]}} create "{{Improve the performance of the data processing pipeline}}"`
|
||||
|
||||
- Create a new agent task from a file:
|
||||
|
||||
`gh {{[agent|agent-task]}} create {{[-F|--from-file]}} {{path/to/file}}`
|
||||
|
||||
- View details about a specific agent task:
|
||||
|
||||
`gh {{[agent|agent-task]}} view {{session_id|pr_number|url|branch}}`
|
||||
|
||||
- Show the log of a specific agent task:
|
||||
|
||||
`gh {{[agent|agent-task]}} view --log {{session_id|pr_number|url|branch}}`
|
||||
21
tldr/linux/systemctl-add-requires
Normal file
21
tldr/linux/systemctl-add-requires
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl add-requires
|
||||
|
||||
> Add `Requires` dependencies to a target for one or more units.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#add-wants%20TARGET%0A%20%20%20%20%20%20%20%20%20%20UNIT%E2%80%A6>.
|
||||
|
||||
- Add a `Requires` dependency from a target to a unit:
|
||||
|
||||
`systemctl add-requires {{target}} {{unit}}`
|
||||
|
||||
- Add multiple `Requires` dependencies at once:
|
||||
|
||||
`systemctl add-requires {{target}} {{unit1 unit2 ...}}`
|
||||
|
||||
- Add a user-level `Requires` dependency:
|
||||
|
||||
`systemctl --user add-requires {{target}} {{unit}}`
|
||||
21
tldr/linux/systemctl-add-wants
Normal file
21
tldr/linux/systemctl-add-wants
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl add-wants
|
||||
|
||||
> Add `Wants` dependencies to a target for one or more units.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#add-wants%20TARGET%0A%20%20%20%20%20%20%20%20%20%20UNIT%E2%80%A6>.
|
||||
|
||||
- Add a `Wants` dependency from a target to a unit:
|
||||
|
||||
`systemctl add-wants {{target}} {{unit}}`
|
||||
|
||||
- Add multiple `Wants` dependencies at once:
|
||||
|
||||
`systemctl add-wants {{target}} {{unit1 unit2 ...}}`
|
||||
|
||||
- Add a user-level `Wants` dependency:
|
||||
|
||||
`systemctl --user add-wants {{target}} {{unit}}`
|
||||
25
tldr/linux/systemctl-bind
Normal file
25
tldr/linux/systemctl-bind
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl bind
|
||||
|
||||
> Ephemerally bind-mount a file or directory from the host into a unit's mount namespace.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#%0A%20%20%20%20%20%20%20%20%20%20%20%20bind%0A%20%20%20%20%20%20%20%20%20%20%20%20UNIT%0A%20%20%20%20%20%20%20%20%20%20%20%20PATH%0A%20%20%20%20%20%20%20%20%20%20%20%20%5BPATH%5D%0A%20%20%20%20%20%20%20%20%20%20>.
|
||||
|
||||
- Bind-mount a host path into the same location inside the unit:
|
||||
|
||||
`systemctl bind {{unit}} /{{path/to/host_directory}}`
|
||||
|
||||
- Bind-mount a host path into a different location inside the unit:
|
||||
|
||||
`systemctl bind {{unit}} /{{path/to/host_directory}} /{{path/to/unit_directory}}`
|
||||
|
||||
- Bind-mount a path as read-only inside the unit:
|
||||
|
||||
`systemctl bind --read-only {{unit}} /{{path/to/host_directory}}`
|
||||
|
||||
- Create the destination path inside the unit before binding:
|
||||
|
||||
`systemctl bind --mkdir {{unit}} /{{path/to/host_directory}} /{{path/to/unit_directory}}`
|
||||
34
tldr/pueue
34
tldr/pueue
@@ -7,16 +7,36 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> A task management tool for sequential and parallel execution of long-running tasks.
|
||||
> Some subcommands such as `add` have their own usage documentation.
|
||||
> More information: <https://github.com/Nukesor/pueue>.
|
||||
> More information: <https://github.com/Nukesor/pueue#how-to-use-it>.
|
||||
|
||||
- Show general help and available subcommands:
|
||||
- Add a command to the task list:
|
||||
|
||||
`pueue {{[-h|--help]}}`
|
||||
`pueue add -- "{{command}}"`
|
||||
|
||||
- Execute a pueue subcommand:
|
||||
- List tasks in the task list:
|
||||
|
||||
`pueue {{subcommand}}`
|
||||
`pueue status`
|
||||
|
||||
- Check the version of pueue:
|
||||
- Send data to a task's `stdin`:
|
||||
|
||||
`pueue {{[-V|--version]}}`
|
||||
`pueue send {{task_id}} {{"hello"}}`
|
||||
|
||||
- View a task's `stdout` and `stderr`, as well as basic information about that task:
|
||||
|
||||
`pueue log {{task_id}}`
|
||||
|
||||
- Create a task group:
|
||||
|
||||
`pueue group --add {{group_name}}`
|
||||
|
||||
- Kill a task:
|
||||
|
||||
`pueue kill {{task_id}}`
|
||||
|
||||
- Set maximum amount of parallel tasks (queued tasks are started as needed to meet this limit):
|
||||
|
||||
`pueue parallel {{number_of_parallel_tasks}}`
|
||||
|
||||
- Edit the command line of a stopped task in the default editor (as specified by `$EDITOR`):
|
||||
|
||||
`pueue edit {{task_id}}`
|
||||
|
||||
@@ -29,6 +29,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`tail {{[-F|--retry --follow]}} {{path/to/file}}`
|
||||
|
||||
- Show last 'num' lines in 'file' and refresh every 'n' seconds:
|
||||
- Show last 'count' lines in 'file' and refresh every 'seconds' seconds:
|
||||
|
||||
`tail {{[-n|--lines]}} {{count}} {{[-s|--sleep-interval]}} {{seconds}} {{[-f|--follow]}} {{path/to/file}}`
|
||||
|
||||
Reference in New Issue
Block a user