LinuxCommandLibrary

systemctl-revert

Restore units to vendor defaults

TLDR

Revert units to vendor defaults

$ systemctl revert [unit1 unit2 ...]
copy
Revert user unit
$ systemctl revert [unit] --user
copy

SYNOPSIS

systemctl revert UNIT...

DESCRIPTION

systemctl revert restores unit files to their original vendor versions by removing all local customizations. This undoes the effects of `edit`, `enable`, `disable`, `set-property`, and `mask` commands.
It removes drop-in files from `/etc/systemd/system/<unit>.d/`, the unit file from `/etc/systemd/system/` if it's a local copy, and any symlinks created by enable/disable/mask.

PARAMETERS

--user

Operate on user units

CAVEATS

Irreversibly removes all local customizations. Cannot recover deleted customizations without backups. Use carefully on production systems.

HISTORY

The revert subcommand provides a clean way to reset unit configuration to distribution defaults, useful when troubleshooting or when customizations are no longer needed.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community