mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-04 21:44:00 +00:00
27 lines
792 B
Plaintext
27 lines
792 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# systemctl preset-all
|
|
|
|
> Reset the enablement state of all installed units to the defaults specified in preset policy files.
|
|
> See also: `systemctl preset`, `systemctl list-unit-files`.
|
|
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#preset-all>.
|
|
|
|
- Reset the enablement state of all installed units:
|
|
|
|
`sudo systemctl preset-all`
|
|
|
|
- Enable only if marked as enabled in the preset policy:
|
|
|
|
`sudo systemctl preset-all --preset-mode enable-only`
|
|
|
|
- Disable only if marked as disabled in the preset policy:
|
|
|
|
`sudo systemctl preset-all --preset-mode disable-only`
|
|
|
|
- Suppress output and return only the exit code:
|
|
|
|
`sudo systemctl preset-all {{[-q|--quiet]}}`
|