What effect does the -f option to the update-rc.d command have on files in the /etc/rcX.d/ and /etc/init.d/ directories?
A. It will force the removal of the symlinks in /etc/rcX.d/ even when the links are read only
B. It will remove both the symlinks in /etc/rcX.d/ and the init script in /etc/init.d/
C. It will remove the init script in /etc/init.d/ and the symlinks in /etc/rcX.d/ and update the package information of installed files
D. It will force the removal of symlinks in /etc/rcX.d/ even if the corresponding init script still exists in /etc/init.d/
题解
Debian 系列的 Linux 发行版可以使用「update-rc.d」指令来激活、禁用或是删除指定的 init 脚本(的符号链接)。在使用「remove」参数的时候可以搭配「-f」参数来强制删除仍然存在的指定 init 脚本的符号链接。
例如要删除「dovecot」这个 init 脚本的符号链接,指令如下:
所以答案是选项「D」。
