CompTIA Linux+ Exam XK0-005 Question # 141 Topic 15 Discussion

CompTIA Linux+ Exam XK0-005 Question # 141 Topic 15 Discussion

XK0-005 Exam Topic 15 Question 141 Discussion:
Question #: 141
Topic #: 15

A user created the following script file:

# ! /bin/bash

# FILENAME: /home/user/ script . sh

echo "hello world"

exit 1

However, when the user tried to run the script file using the command "script . sh, an error returned indicating permission was denied. Which of the follow-ing should the user execute in

order for the script to run properly?


A.

chmod u+x /home/user/script . sh


B.

chmod 600 /home/user/script . sh


C.

chmod /home/user/script . sh


D.

chmod 0+r /horne/user/script. sh


Get Premium XK0-005 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.