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
7 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
9 days ago
I also think creating a unit file for the new service in /etc/systemd/system/ might be necessary.
upvoted 0 times
...
Joye
13 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
15 days ago
I agree with Eugene, that could help address the issue.
upvoted 0 times
...
Eugene
19 days ago
I think the administrator should add #!/bin/bash to the bottom of the script.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77