HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

systemctl preset-all — Reset the enablement state of all installed units to the defaults specified in preset policy files.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandallstatecliresetenablementsystemctl preset-all
linux

Problem

How to use the systemctl preset-all command: 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>.

Solution

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]}}

Code Snippets

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]}}

Context

tldr-pages: linux/systemctl preset-all

Revisions (0)

No revisions yet.