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:
Verified
Q202: A junior systems administrator needs to make
Q203: A Linux administrator receives a call from
Q204: The following represents a partial listing of
Q205: A Linux team is using Git to
Q206: When requesting SSH access to a remote
Q208: An administrator notices a website hosted on
Q209: Given the output below: [root@appserver ~]# rm
Q210: A systems administrator needs to run the
Q211: A user is reporting unusual slowness when
Q212: The Apache web server was recently installed
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents