XK0-005 · Question #564
XK0-005 Question #564: Real Exam Question with Answer & Explanation
Sign in or unlock XK0-005 to reveal the answer and full explanation for question #564. The question stem and answer options stay visible for context.
Question
A systems administrator is implementing a new service task with systems at startup and needs to execute a script entitled test.sh with the following content: The administrator tries to run the script after making it executable with chmod +x; however, the script will not run. Which of the following should the administrator do to address this issue? (Choose two.)
Options
- AAdd #!/bin/bash to the bottom of the script.
- BCreate a unit file for the new service in /etc/systemd/system/ with the name helpme.service in the
- CAdd #!//bin/bash to the top of the script.
- DRestart the computer to enable the new service.
- ECreate a unit file for the new service in /etc/init.d with the name helpme.service in the location.
- FShut down the computer to enable the new service.
Unlock XK0-005 to see the answer
You've previewed enough free XK0-005 questions. Unlock XK0-005 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.