From 81a6c63f96a7f53b4f3f8c50298e419b06576255 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sat, 20 Sep 2025 00:18:04 +0000 Subject: [PATCH] Update cheatsheets --- tldr/gh-org | 21 +++++++++++++++++++++ tldr/linux/rpmkeys | 22 ++++++++++++++++++++++ tldr/linux/systemctl-cat | 2 +- tldr/linux/systemctl-edit | 2 +- tldr/linux/systemctl-freeze | 2 +- tldr/linux/systemctl-mask | 2 +- tldr/linux/systemctl-restart | 2 +- tldr/linux/systemctl-set-environment | 21 +++++++++++++++++++++ tldr/linux/systemctl-start | 2 +- tldr/linux/systemctl-status | 2 +- tldr/linux/systemctl-stop | 2 +- tldr/linux/systemctl-suspend | 2 +- tldr/linux/systemctl-thaw | 2 +- tldr/linux/systemctl-unmask | 22 ++++++++++++++++++++++ tldr/linux/systemctl-unset-environment | 22 ++++++++++++++++++++++ tldr/linux/systemctl-whoami | 2 +- 16 files changed, 119 insertions(+), 11 deletions(-) create mode 100644 tldr/gh-org create mode 100644 tldr/linux/rpmkeys create mode 100644 tldr/linux/systemctl-set-environment create mode 100644 tldr/linux/systemctl-unmask create mode 100644 tldr/linux/systemctl-unset-environment diff --git a/tldr/gh-org b/tldr/gh-org new file mode 100644 index 00000000..c9458f91 --- /dev/null +++ b/tldr/gh-org @@ -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: . + +- 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` diff --git a/tldr/linux/rpmkeys b/tldr/linux/rpmkeys new file mode 100644 index 00000000..1b5c4256 --- /dev/null +++ b/tldr/linux/rpmkeys @@ -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: . + +- 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}}` diff --git a/tldr/linux/systemctl-cat b/tldr/linux/systemctl-cat index d8ec3c1e..ffb8bde3 100644 --- a/tldr/linux/systemctl-cat +++ b/tldr/linux/systemctl-cat @@ -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: . +> More information: . - Show the contents and absolute path of a unit file: diff --git a/tldr/linux/systemctl-edit b/tldr/linux/systemctl-edit index 4fd806fd..863b32b9 100644 --- a/tldr/linux/systemctl-edit +++ b/tldr/linux/systemctl-edit @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # systemctl edit > Edit systemd unit files. -> More information: . +> More information: . - Overlay a unit file non-destructively: diff --git a/tldr/linux/systemctl-freeze b/tldr/linux/systemctl-freeze index 43581522..c414c3e3 100644 --- a/tldr/linux/systemctl-freeze +++ b/tldr/linux/systemctl-freeze @@ -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: . +> More information: . - Freeze a specific unit: diff --git a/tldr/linux/systemctl-mask b/tldr/linux/systemctl-mask index d9f8e2bb..10c8b9d7 100644 --- a/tldr/linux/systemctl-mask +++ b/tldr/linux/systemctl-mask @@ -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: . +> More information: . - Mask a service: diff --git a/tldr/linux/systemctl-restart b/tldr/linux/systemctl-restart index ff1042df..1e80678e 100644 --- a/tldr/linux/systemctl-restart +++ b/tldr/linux/systemctl-restart @@ -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: . +> More information: . - Restart a unit: diff --git a/tldr/linux/systemctl-set-environment b/tldr/linux/systemctl-set-environment new file mode 100644 index 00000000..2542e3db --- /dev/null +++ b/tldr/linux/systemctl-set-environment @@ -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: . + +- 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}}` diff --git a/tldr/linux/systemctl-start b/tldr/linux/systemctl-start index a021de9f..29827d71 100644 --- a/tldr/linux/systemctl-start +++ b/tldr/linux/systemctl-start @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # systemctl start > Start systemd units. -> More information: . +> More information: . - Start a unit: diff --git a/tldr/linux/systemctl-status b/tldr/linux/systemctl-status index 9bf19e24..44644c58 100644 --- a/tldr/linux/systemctl-status +++ b/tldr/linux/systemctl-status @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # systemctl status > Display the status of systemd units. -> More information: . +> More information: . - Show the status of a systemd unit: diff --git a/tldr/linux/systemctl-stop b/tldr/linux/systemctl-stop index 6241e689..c1f18312 100644 --- a/tldr/linux/systemctl-stop +++ b/tldr/linux/systemctl-stop @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # systemctl stop > Stop systemd units. -> More information: . +> More information: . - Stop a unit: diff --git a/tldr/linux/systemctl-suspend b/tldr/linux/systemctl-suspend index cbaf4a53..228bc776 100644 --- a/tldr/linux/systemctl-suspend +++ b/tldr/linux/systemctl-suspend @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # systemctl suspend > Suspend the system. -> More information: . +> More information: . - Suspend the system immediately: diff --git a/tldr/linux/systemctl-thaw b/tldr/linux/systemctl-thaw index 33c554a5..20f7ac9d 100644 --- a/tldr/linux/systemctl-thaw +++ b/tldr/linux/systemctl-thaw @@ -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: . +> More information: . - Thaw a specific unit: diff --git a/tldr/linux/systemctl-unmask b/tldr/linux/systemctl-unmask new file mode 100644 index 00000000..66c81ed4 --- /dev/null +++ b/tldr/linux/systemctl-unmask @@ -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: . + +- 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}}` diff --git a/tldr/linux/systemctl-unset-environment b/tldr/linux/systemctl-unset-environment new file mode 100644 index 00000000..1e8011d9 --- /dev/null +++ b/tldr/linux/systemctl-unset-environment @@ -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: . + +- 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}}` diff --git a/tldr/linux/systemctl-whoami b/tldr/linux/systemctl-whoami index 3591cee9..7197b3b8 100644 --- a/tldr/linux/systemctl-whoami +++ b/tldr/linux/systemctl-whoami @@ -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: . +> More information: . - Show the unit of the current shell (where `systemctl` is running):