Which option to the update-rc.d command will cause the removal of all symlinks to /etc/rcX.d/*test2 even when the script /etc/init.d/test2 still exists?

A. -d
B. -f
C. -n
D. -r

题解

Debian 系列的 Linux 发行版可以使用「update-rc.d」指令来激活、禁用或是删除指定的 init 脚本(的符号链接)。在使用「remove」参数的时候可以搭配「-f」参数来强制删除仍然存在的指定 init 脚本的符号链接。

例如要删除「dovecot」这个 init 脚本的符号链接,指令如下:

update-rc.d -f dovecot remove