Solved

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

Question 249

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