Update cheatsheets

This commit is contained in:
ivuorinen
2025-09-25 00:19:09 +00:00
parent ffb5ac3c0a
commit 686b592a91
25 changed files with 169 additions and 31 deletions

25
tldr/linux/emaint Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# emaint
> Perform Portage maintenance tasks.
> More information: <https://wiki.gentoo.org/wiki/Portage#emaint>.
- Synchronize repositories that are set to auto-sync (default for most repositories):
`sudo emaint sync {{[-a|--auto]}}`
- Synchronize a specific repository:
`sudo emaint sync {{[-r|--repo]}} {{repository}}`
- Clear the Portage resume list:
`sudo emaint cleanresume {{[-f|--fix]}}`
- Clean Portage logs:
`sudo emaint logs {{[-C|--clean]}}`

17
tldr/linux/lvmsadc Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# lvmsadc
> LVM system activity data collector (not supported under LVM2; prefer `dmstats`).
> More information: <https://manned.org/lvmsadc>.
- Run the collector (legacy LVM1 systems only):
`lvmsadc`
- Report I/O statistics using the device-mapper replacement:
`dmstats report {{/dev/mapper/device}}`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Postfix mail transfer agent (MTA) control program.
> See also: `dovecot`, a mail delivery agent (MDA) that integrates with Postfix.
> More information: <https://www.postfix.org>.
> More information: <https://www.postfix.org/postfix.1.html>.
- Check the configuration:

View File

@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
- Cancel a job in the user service manager:
`systemctl --user cancel {{job_id}}`
`systemctl cancel --user {{job_id}}`

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Stop a service from running on boot and stop its current execution:
`systemctl disable {{unit}} --now`
`systemctl disable --now {{unit}}`
- Stop a user service from running on login:

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Enable a service to run on boot and start it now:
`systemctl enable {{unit}} --now`
`systemctl enable --now {{unit}}`
- Enable a user unit to run on login:

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Ensure that the service is shut down while masking:
`systemctl mask {{service_name}} --now`
`systemctl mask --now {{service_name}}`
- Mask a user service:

View File

@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
- Unmask and start a service immediately:
`systemctl unmask {{service_name}} --now`
`systemctl unmask --now {{service_name}}`
- Unmask a user service: