Linux command
systemctl-revert 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Revert
systemctl revert [unit1 unit2 ...]
Example
systemctl revert [unit] --user
说明
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.
参数
- --user
- Operate on user units
FAQ
What is the systemctl-revert command used for?
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.
How do I run a basic systemctl-revert example?
Run `systemctl revert [unit1 unit2 ...]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --user do in systemctl-revert?
Operate on user units