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:
25
tldr/jj-bisect
Normal file
25
tldr/jj-bisect
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# jj bisect
|
||||
|
||||
> Find a bad revision by bisection.
|
||||
> More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-bisect>.
|
||||
|
||||
- Find the first bad revision in a range by running a test command:
|
||||
|
||||
`jj bisect run {{[-r|--range]}} {{good_revision}}..{{bad_revision}} {{command}}`
|
||||
|
||||
- Find the first bad revision using a shell command:
|
||||
|
||||
`jj bisect run {{[-r|--range]}} {{good_revision}}..{{bad_revision}} -- bash -c "{{command}}"`
|
||||
|
||||
- Find the first good revision instead of the first bad one:
|
||||
|
||||
`jj bisect run {{[-r|--range]}} {{good_revision}}..{{bad_revision}} --find-good {{command}}`
|
||||
|
||||
- Find the first revision where a file was added:
|
||||
|
||||
`jj bisect run {{[-r|--range]}} {{good_revision}}..{{bad_revision}} --find-good -- test -f {{path/to/file}}`
|
||||
42
tldr/jj-tag
Normal file
42
tldr/jj-tag
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# jj tag
|
||||
|
||||
> Manage tags in a `jj` repository.
|
||||
> Some subcommands such as `delete`, `list`, `set` have their own usage documentation.
|
||||
> More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-tag>.
|
||||
|
||||
- Create a tag pointing to the current working copy revision:
|
||||
|
||||
`jj tag {{[s|set]}} {{tag_name}}`
|
||||
|
||||
- Create a tag pointing to a specific revision:
|
||||
|
||||
`jj tag {{[s|set]}} {{tag_name}} {{[-r|--revision]}} {{revision}}`
|
||||
|
||||
- List all tags:
|
||||
|
||||
`jj tag {{[l|list]}}`
|
||||
|
||||
- List tags matching a pattern, sorted by committer date (newest first):
|
||||
|
||||
`jj tag {{[l|list]}} --sort committer-date- "{{pattern}}"`
|
||||
|
||||
- Move an existing tag to a different revision:
|
||||
|
||||
`jj tag {{[s|set]}} {{tag_name}} {{[-r|--revision]}} {{revision}} --allow-move`
|
||||
|
||||
- Delete a tag:
|
||||
|
||||
`jj tag {{[d|delete]}} {{tag_name}}`
|
||||
|
||||
- Delete tags matching a glob pattern:
|
||||
|
||||
`jj tag {{[d|delete]}} "{{glob:v1.*}}"`
|
||||
|
||||
- Display help:
|
||||
|
||||
`jj tag {{[-h|--help]}}`
|
||||
30
tldr/jj-tag-delete
Normal file
30
tldr/jj-tag-delete
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# jj tag delete
|
||||
|
||||
> Delete tags in a `jj` repository.
|
||||
> See also: `jj tag list`, `jj tag set`.
|
||||
> More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-tag-delete>.
|
||||
|
||||
- Delete a tag:
|
||||
|
||||
`jj tag {{[d|delete]}} {{tag_name}}`
|
||||
|
||||
- Delete multiple tags:
|
||||
|
||||
`jj tag {{[d|delete]}} {{tag1 tag2 ...}}`
|
||||
|
||||
- Delete tags matching a glob pattern:
|
||||
|
||||
`jj tag {{[d|delete]}} "{{glob:v1.*}}"`
|
||||
|
||||
- Delete tags matching a substring pattern:
|
||||
|
||||
`jj tag {{[d|delete]}} "{{substring:release}}"`
|
||||
|
||||
- Delete a tag by exact name:
|
||||
|
||||
`jj tag {{[d|delete]}} "{{exact:v1.0.0}}"`
|
||||
34
tldr/jj-tag-list
Normal file
34
tldr/jj-tag-list
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# jj tag list
|
||||
|
||||
> List tags in a `jj` repository.
|
||||
> See also: `jj tag delete`, `jj tag set`.
|
||||
> More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-tag-list>.
|
||||
|
||||
- List all tags:
|
||||
|
||||
`jj tag {{[l|list]}}`
|
||||
|
||||
- List tags matching a pattern:
|
||||
|
||||
`jj tag {{[l|list]}} "{{pattern}}"`
|
||||
|
||||
- List tags matching a substring pattern:
|
||||
|
||||
`jj tag {{[l|list]}} "{{substring:release}}"`
|
||||
|
||||
- List tags sorted by committer date (newest first):
|
||||
|
||||
`jj tag {{[l|list]}} --sort committer-date-`
|
||||
|
||||
- List tags sorted by name in descending order:
|
||||
|
||||
`jj tag {{[l|list]}} --sort name-`
|
||||
|
||||
- List tags with a custom template:
|
||||
|
||||
`jj tag {{[l|list]}} {{[-T|--template]}} "{{template}}"`
|
||||
30
tldr/jj-tag-set
Normal file
30
tldr/jj-tag-set
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# jj tag set
|
||||
|
||||
> Create or update tags in a `jj` repository.
|
||||
> See also: `jj tag delete`, `jj tag list`.
|
||||
> More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-tag-set>.
|
||||
|
||||
- Create a tag pointing to the current working copy revision:
|
||||
|
||||
`jj tag {{[s|set]}} {{tag_name}}`
|
||||
|
||||
- Create a tag pointing to a specific revision:
|
||||
|
||||
`jj tag {{[s|set]}} {{tag_name}} {{[-r|--revision]}} {{revision}}`
|
||||
|
||||
- Create multiple tags pointing to the same revision:
|
||||
|
||||
`jj tag {{[s|set]}} {{tag1 tag2 ...}} {{[-r|--revision]}} {{revision}}`
|
||||
|
||||
- Move an existing tag to a different revision:
|
||||
|
||||
`jj tag {{[s|set]}} {{tag_name}} {{[-r|--revision]}} {{revision}} --allow-move`
|
||||
|
||||
- Create a tag pointing to the parent of the current revision:
|
||||
|
||||
`jj tag {{[s|set]}} {{tag_name}} {{[-r|--revision]}} @-`
|
||||
10
tldr/kill
10
tldr/kill
@@ -19,20 +19,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Terminate a program using the SIGHUP (hang up) signal. Many daemons will reload instead of terminating:
|
||||
|
||||
`kill -{{1|HUP}} {{process_id}}`
|
||||
`kill {{[-1|-HUP]}} {{process_id}}`
|
||||
|
||||
- Terminate a program using the SIGINT (interrupt) signal. This is typically initiated by the user pressing `<Ctrl c>`:
|
||||
|
||||
`kill -{{2|INT}} {{process_id}}`
|
||||
`kill {{[-2|-INT]}} {{process_id}}`
|
||||
|
||||
- Signal the operating system to immediately terminate a program (which gets no chance to capture the signal):
|
||||
|
||||
`kill -{{9|KILL}} {{process_id}}`
|
||||
`kill {{[-9|-KILL]}} {{process_id}}`
|
||||
|
||||
- Signal the operating system to pause a program until a SIGCONT ("continue") signal is received:
|
||||
|
||||
`kill -{{17|STOP}} {{process_id}}`
|
||||
`kill {{[-19|-STOP]}} {{process_id}}`
|
||||
|
||||
- Send a `SIGUSR1` signal to all processes with the given GID (group id):
|
||||
|
||||
`kill -{{SIGUSR1}} -{{group_id}}`
|
||||
`kill -SIGUSR1 -{{group_id}}`
|
||||
|
||||
@@ -23,20 +23,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Terminate a program using the SIGHUP (hang up) signal. Many daemons will reload instead of terminating:
|
||||
|
||||
`kill -{{1|HUP}} {{process_id}}`
|
||||
`kill {{[-1|-HUP]}} {{process_id}}`
|
||||
|
||||
- Terminate a program using the SIGINT (interrupt) signal. This is typically initiated by the user pressing `<Ctrl c>`:
|
||||
|
||||
`kill -{{2|INT}} {{process_id}}`
|
||||
`kill {{[-2|-INT]}} {{process_id}}`
|
||||
|
||||
- Signal the operating system to immediately terminate a program (which gets no chance to capture the signal):
|
||||
|
||||
`kill -{{9|KILL}} {{process_id}}`
|
||||
`kill {{[-9|-KILL]}} {{process_id}}`
|
||||
|
||||
- Signal the operating system to pause a program until a SIGCONT ("continue") signal is received:
|
||||
|
||||
`kill -{{17|STOP}} {{process_id}}`
|
||||
`kill {{[-19|-STOP]}} {{process_id}}`
|
||||
|
||||
- Send a `SIGUSR1` signal to all processes with the given GID (group id):
|
||||
|
||||
`kill -{{SIGUSR1}} -{{group_id}}`
|
||||
`kill -SIGUSR1 -{{group_id}}`
|
||||
|
||||
@@ -14,8 +14,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Set the rotation of a display output with an ID of 1 to the right:
|
||||
|
||||
`kscreen-doctor {{output.1.rotation.right}}`
|
||||
`kscreen-doctor output.1.rotation.right`
|
||||
|
||||
- Set the scale of a display output with an ID of `HDMI-2` to 2 (200%):
|
||||
|
||||
`kscreen-doctor {{output.HDMI-2.scale.2}}`
|
||||
`kscreen-doctor output.HDMI-2.scale.2`
|
||||
|
||||
- Enable a specific HDMI display:
|
||||
|
||||
`kscreen-doctor output.{{HDMI-A-1}}.enable`
|
||||
|
||||
- Disable a specific DisplayPort display:
|
||||
|
||||
`kscreen-doctor output.{{DP-2}}.disable`
|
||||
|
||||
- Set a display as primary display:
|
||||
|
||||
`kscreen-doctor output.{{HDMI-A-1}}.primary`
|
||||
|
||||
@@ -13,13 +13,13 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`zenity --question`
|
||||
|
||||
- Display an info dialog displaying the text "Hello!":
|
||||
- Display an info dialog displaying a message:
|
||||
|
||||
`zenity --info --text="{{Hello!}}"`
|
||||
`zenity --info --text "{{message}}"`
|
||||
|
||||
- Display a name/password form and output the data separated by ";":
|
||||
- Display a name/password form and output the data separated by ";" ("|" by default):
|
||||
|
||||
`zenity --forms --add-entry="{{Name}}" --add-password="{{Password}}" --separator="{{;}}"`
|
||||
`zenity --forms --add-entry "{{name_label}}" --add-password "{{password_label}}" --separator ";"`
|
||||
|
||||
- Display a file selection form in which the user can only select directories:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user