commands.sh

systemctl preset-all

linux

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 info →

Options (1)

-q, --quietboolean

Suppress output and return only the exit code

Example: sudo systemctl preset-all {{[-q|--quiet]}}

Examples (4)

Reset the enablement state of all installed units

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

made by @shridhargupta | data from tldr-pages