XK0-005 · Question #783
XK0-005 Question #783: Real Exam Question with Answer & Explanation
The correct answer is D: systemctl stop tor && systemctl disable tor. {"question_number": 5, "question": "A systems administrator needs to stop a running systemd service tor and prevent it from running when the system starts up.", "correct_answer": "D", "explanation": "'systemctl stop tor' immediately stops the currently running service, and 'syste
Question
A systems administrator needs to stop a running systemd service tor and prevent it from running when the system starts up. Which of the following is the best command for the administrator to use to accomplish this task?
Options
- Apidof -o %PPID -x tor && apt -y purge tor
- Bpkill tor
- Cservice stop|disable tor
- Dsystemctl stop tor && systemctl disable tor
Explanation
{"question_number": 5, "question": "A systems administrator needs to stop a running systemd service tor and prevent it from running when the system starts up.", "correct_answer": "D", "explanation": "'systemctl stop tor' immediately stops the currently running service, and 'systemctl disable tor' removes the service's symlinks from the systemd target directories so it will not start automatically on future boots. These are the two required, independent operations in systemd. Option A purges the package entirely, which is more drastic than needed. Option B (pkill) kills the process by name but does not disable it from auto-starting. Option C uses incorrect syntax - the correct syntax is 'service tor stop' (for SysV-style), not 'service stop|disable tor'.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.