An end user is trying to execute a file within a different directory. The end user executes the following command: [comptia@linux tmp]# ../myabc.sh -bash: ../myabc.sh: Permission denied [comptia@linux tmp]# Which of the following commands should the Linux administrator use to run the shell script within that folder?

QuestionsCategory: XK0-004An end user is trying to execute a file within a different directory. The end user executes the following command: [comptia@linux tmp]# ../myabc.sh -bash: ../myabc.sh: Permission denied [comptia@linux tmp]# Which of the following commands should the Linux administrator use to run the shell script within that folder?
Admin Staff asked 6 months ago
An end user is trying to execute a file within a different directory. The end user executes the following command:
[comptia@linux tmp]# ../myabc.sh
-bash: ../myabc.sh: Permission denied
[comptia@linux tmp]#
Which of the following commands should the Linux administrator use to run the shell script within that folder?

A. chmod 0644

B. chmod g-x myabc.sh

C. chmod 0755

D. chmod u-x myabc.sh








 

Suggested Answer: B

Community Answer: C



This question is in XK0-004 CompTIA Linux+ Exam
For getting CompTIA Linux+ Certificate


Disclaimers:
The website is not related to, affiliated with, endorsed or authorized by CompTIA. 
Trademarks, certification & product names are used for reference only and belong to CompTIA.
The website does not contain actual questions and answers from CompTIA's Certification Exams.

Next Post

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.