Services and User Management
On a system that uses update-alternatives, how is the generic command path /usr/bin/editor normally linked to the selected program?
Show the answer
Correct answerA. It is a symbolic link to /etc/alternatives/editor, which links to the chosen program
AWhy this is right: The generic path links into /etc/alternatives, and that entry links to the selected program.
BWhy not this: Alternatives uses symbolic links, not hard links, so the selection can point across filesystems.
CWhy not this: The generic path stays fixed; only the link inside /etc/alternatives is changed.
DWhy not this: No wrapper runs; the choice is resolved by the two symbolic links themselves.
The alternatives system uses a two-level symlink chain: the generic path points into /etc/alternatives, and that entry points to the chosen binary. Changing the selection only updates the link in /etc/alternatives.