mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-18 08:49:50 +00:00
Update cheatsheets
This commit is contained in:
25
tldr/linux/emaint
Normal file
25
tldr/linux/emaint
Normal 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
17
tldr/linux/lvmsadc
Normal 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}}`
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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}}`
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user