Difficulty: Easy
Correct Answer: switchdesk
Explanation:
Introduction / Context:Linux distributions that support multiple desktop environments often include a tool to change a user’s default X session without manually editing startup files. Historically, Red Hat–family systems provided switchdesk to toggle between GNOME, KDE, and other desktops.
Given Data / Assumptions:
Concept / Approach:
switchdesk updates the user’s desktop preference by writing the appropriate session or Xclients file. While modern distros may use display manager menus (GDM, SDDM, LightDM) at login, switchdesk remains a recognizable legacy tool for exam and certification contexts.
Step-by-Step Solution:
Ensure the target desktops (e.g., GNOME, KDE Plasma) are installed.Run switchdesk or switchdesk KDE (syntax varies) under your user account.Log out and log back in, or restart the display manager to apply changes.Alternatively choose the session from the display manager’s gear/options menu at login.Persist choice per user using the DM settings or ~/.Xclients if needed.Verification / Alternative check:
After re-login, confirm the new desktop environment loads (desktop shell, panels, settings). Check ~/.Xclients or ~/.dmrc for updated entries on older systems.
Why Other Options Are Wrong:
b, c, d: intrc, xinitre, and Xchange are not standard tools for changing default desktops.
e: Not applicable because switchdesk is an established utility for this purpose on certain distributions.
Common Pitfalls:
Expecting switchdesk on distributions that have deprecated it; forgetting that the display manager’s session chooser overrides defaults; lacking required desktop packages leading to fallback to a basic window manager.
Final Answer:
switchdesk
Discussion & Comments