Update cheatsheets

This commit is contained in:
ivuorinen
2025-09-20 00:18:04 +00:00
parent 2442abf01b
commit 81a6c63f96
16 changed files with 119 additions and 11 deletions

21
tldr/gh-org Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# gh org
> Work with GitHub organizations.
> More information: <https://cli.github.com/manual/gh_org>.
- List organizations for the authenticated user:
`gh org {{[ls|list]}}`
- List a certain amount of organizations (defaults to 30):
`gh org {{[ls|list]}} {{[-L|--limit]}} {{100}}`
- Display help:
`gh org --help`

22
tldr/linux/rpmkeys Normal file
View File

@@ -0,0 +1,22 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# rpmkeys
> Tool to import and remove RPM keys for RPM repositories.
> When adding an RPM repository, you must also import the corresponding RPM key.
> More information: <https://rpm-software-management.github.io/rpm/man/rpmkeys.8>.
- List all imported RPM keys. Also outputs its Key ID needed for deleting a imported RPM key:
`sudo rpmkeys --list`
- Remove/Delete a previously imported RPM key, given by its 16-Number/Letters Key ID:
`sudo rpmkeys --delete {{5a278d9c-5bbc73cb}}`
- Import an RPM key of repository:
`sudo rpmkeys --import {{path/to/rpm_key}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl cat
> Show the full contents of unit files as systemd sees them.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#cat%20PATTERN%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#cat%20PATTERN%E2%80%A6>.
- Show the contents and absolute path of a unit file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl edit
> Edit systemd unit files.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#edit%20UNIT%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#edit%20UNIT%E2%80%A6>.
- Overlay a unit file non-destructively:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Freeze one or more units.
> Frozen units can be resumed with `systemctl thaw`.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#freeze%20PATTERN%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#freeze%20PATTERN%E2%80%A6>.
- Freeze a specific unit:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl mask
> Link units to `/dev/null` so that they can be even started.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#mask%20UNIT%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#mask%20UNIT%E2%80%A6>.
- Mask a service:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Stop and then start one or more systemd units.
> Can be used in place of `systemctl start` on a stopped unit, but `start` is safer so that a running unit isn't accidentally restarted.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#restart%20PATTERN%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#restart%20PATTERN%E2%80%A6>.
- Restart a unit:

View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl set-environment
> Set one or more service manager environment variables.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#set-environment%20VARIABLE=VALUE%E2%80%A6>.
- Set a single environment variable:
`systemctl set-environment {{var value}}`
- Set multiple environment variables at once:
`systemctl set-environment {{var1 value1 var2 value2 ...}}`
- Set an environment variable for the user service manager:
`systemctl --user set-environment {{var value}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl start
> Start systemd units.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#start%20PATTERN%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#start%20PATTERN%E2%80%A6>.
- Start a unit:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl status
> Display the status of systemd units.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#status%20PATTERN%E2%80%A6%7CPID%E2%80%A6%5D>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#status%20PATTERN%E2%80%A6%7CPID%E2%80%A6%5D>.
- Show the status of a systemd unit:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl stop
> Stop systemd units.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#stop%20PATTERN%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#stop%20PATTERN%E2%80%A6>.
- Stop a unit:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl suspend
> Suspend the system.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#suspend>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#suspend>.
- Suspend the system immediately:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Thaw (resume) one or more frozen units.
> Units can be frozen with `systemctl freeze`.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#thaw%20PATTERN%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#thaw%20PATTERN%E2%80%A6>.
- Thaw a specific unit:

View File

@@ -0,0 +1,22 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl unmask
> Unmask units to make them startable again.
> This undoes the effect of `systemctl mask`.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#unmask%20UNIT%E2%80%A6>.
- Unmask a service:
`systemctl unmask {{service_name}}`
- Unmask and start a service immediately:
`systemctl unmask {{service_name}} --now`
- Unmask a user service:
`systemctl unmask --user {{service_name}}`

View File

@@ -0,0 +1,22 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl unset-environment
> Unset one or more service manager environment variables.
> This undoes the effect of `systemctl set-environment`.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#unset-environment%20VARIABLE%E2%80%A6>.
- Unset a single environment variable:
`systemctl unset-environment {{var}}`
- Unset multiple environment variables at once:
`systemctl unset-environment {{var1 var2 ...}}`
- Unset an environment variable in the user service manager:
`systemctl --user unset-environment {{var}}`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Show units that processes belong to.
> If no PID is specified, shows the unit the `systemctl` command itself is invoked in.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#whoami%20%5BPID%E2%80%A6%5D>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#whoami%20%5BPID%E2%80%A6%5D>.
- Show the unit of the current shell (where `systemctl` is running):