Update cheatsheets

This commit is contained in:
ivuorinen
2026-01-18 00:24:29 +00:00
parent ce240b2f02
commit 01e38ccf44
9 changed files with 189 additions and 16 deletions

View File

@@ -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}}`

View File

@@ -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`

View File

@@ -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: