Solved

Joe, a User, Creates a Short Shell Script, Shortscript

Question 207

Multiple Choice

Joe, a user, creates a short shell script, shortscript.sh , and saves it in his home directory with default permissions and paths. He then attempts to run the script by typing ./shortscript.sh , but the command fails to execute. Which of the following commands would have allowed the script to run?


A) chmod u+x shortscript.sh
B) source ./shortscript.sh
C) chmod 155 ~/shortscript.sh
D) chgrp shortscript.sh Joe

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents