snippetbashTip
systemctl preset-all — Reset the enablement state of all installed units to the defaults specified in preset policy files.
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-allEnable only if marked as enabled in the preset policy:
sudo systemctl preset-all --preset-mode enable-onlyDisable only if marked as disabled in the preset policy:
sudo systemctl preset-all --preset-mode disable-onlySuppress 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-allEnable only if marked as enabled in the preset policy
sudo systemctl preset-all --preset-mode enable-onlyDisable only if marked as disabled in the preset policy
sudo systemctl preset-all --preset-mode disable-onlySuppress 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.