Update cheatsheets

This commit is contained in:
ivuorinen
2025-09-24 00:19:14 +00:00
parent 67b1d9150b
commit ffb5ac3c0a
8 changed files with 165 additions and 1 deletions

29
tldr/linux/dnf-clean Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# dnf clean
> Perform cleanup of temporary files kept for Red Hat-based repositories.
> More information: <https://dnf.readthedocs.io/en/latest/command_ref.html#clean-command>.
- Remove cache files generated from the repository metadata:
`dnf clean dbcache`
- Mark the repository metadata as expired:
`dnf clean expire-cache`
- Remove repository metadata:
`dnf clean metadata`
- Remove any cached packages from the system:
`dnf clean packages`
- Clean up all DNF repository specific metadata and cached files (all of the above):
`dnf clean all`

View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl cancel
> Cancel one or more pending jobs in the system manager or user manager.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#cancel%20JOB%E2%80%A6>.
- Cancel a job by its numeric ID:
`systemctl cancel {{job_id}}`
- Cancel multiple jobs:
`systemctl cancel {{job_id1 job_id2 ...}}`
- Cancel all pending jobs:
`systemctl cancel`
- Cancel a job in the user service manager:
`systemctl --user cancel {{job_id}}`