CompTIA Linux+ (XK0-005) — Question 223
An administrator needs to make an application change via a script that must be run only in console mode. Which of the following best represents the sequence the administrator should execute to accomplish this task?
Answer options
- A. systemctl isolate multi-user.target sh script.sh systemctl isolate graphical.target
- B. systemctl isolate graphical.target sh script.sh systemctl isolate multi-user.target
- C. sh script.sh systemctl isolate multi-user.target systemctl isolate graphical.target
- D. systemctl isolate multi-user.target systemctl isolate graphical.target sh script.sh
Correct answer: A
Explanation
The correct sequence begins by isolating the multi-user.target, which sets the system to console mode. After that, the script can be run safely in this environment. The other options either start in graphical mode or run the script in the wrong order, which would not fulfill the requirement to execute it only in console mode.