LPIC-2 Exam 201 (Linux Engineer) — Question 45
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?
Answer options
- 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/
Correct answer: D
Explanation
The correct answer is D because the 'f' option forces the removal of symlinks in /etc/rcX.d/ even when the corresponding init script is still available in /etc/init.d/. Options A, B, and C are incorrect as they misrepresent the specific functionality of the 'f' option regarding the presence of scripts and the nature of the symlink removal.