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:
21
tldr/gh-org
Normal file
21
tldr/gh-org
Normal 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
22
tldr/linux/rpmkeys
Normal 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}}`
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
21
tldr/linux/systemctl-set-environment
Normal file
21
tldr/linux/systemctl-set-environment
Normal 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}}`
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
22
tldr/linux/systemctl-unmask
Normal file
22
tldr/linux/systemctl-unmask
Normal 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}}`
|
||||
22
tldr/linux/systemctl-unset-environment
Normal file
22
tldr/linux/systemctl-unset-environment
Normal 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}}`
|
||||
@@ -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):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user