Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA Exam XK0-005 Topic 10 Question 10 Discussion

Actual exam question for CompTIA's XK0-005 exam
Question #: 10
Topic #: 10
[All XK0-005 Questions]

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.)

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Mica
2 days ago
Restarting the computer won't help here. The script needs to be properly set up, not the system. I'd say A and B are the way to go.
upvoted 0 times
...
Tegan
4 days ago
I also think creating a unit file for the new service in /etc/systemd/system/ might be necessary.
upvoted 0 times
...
Joye
8 days ago
The issue is likely that the script doesn't have the shebang line, which specifies the interpreter to use. I'd go with option A - adding #!/bin/bash to the top of the script.
upvoted 0 times
...
Shaniqua
10 days ago
I agree with Eugene, that could help address the issue.
upvoted 0 times
...
Eugene
14 days ago
I think the administrator should add #!/bin/bash to the bottom of the script.
upvoted 0 times
...

Save Cancel