commands.sh

systemctl preset

linux

Reset the enablement state of unit files to the defaults specified in preset policy files. See also: `systemctl preset-all`, `systemctl list-unit-files`.

More info →

Options (1)

-q, --quietboolean

Suppress output and return only the exit code

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

Examples (4)

Reset the enablement state to preset defaults

systemctl preset unit1 unit2 ...

Enable only if marked as enabled in the preset policy

systemctl preset unit --preset-mode enable-only

Disable only if marked as disabled in the preset policy

systemctl preset unit --preset-mode disable-only

Suppress output and return only the exit code

systemctl preset unit [-q|--quiet]
made by @shridhargupta | data from tldr-pages