nerdexam
CompTIACompTIA

XK0-005 · Question #10210

XK0-005 Question #10210: Real Exam Question with Answer & Explanation

Sign in or unlock XK0-005 to reveal the answer and full explanation for question #10210. The question stem and answer options stay visible for context.

Troubleshooting

Question

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?

Options

  • Achmod u+x shortscript.sh
  • Bsource ./shortscript.sh
  • Cchmod 155 ~/shortscript.sh
  • Dchgrp shortscript.sh Joe

Unlock XK0-005 to see the answer

You've previewed enough free XK0-005 questions. Unlock XK0-005 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#File Permissions#chmod#Shell Scripting#Troubleshooting Scripts
Full XK0-005 PracticeBrowse All XK0-005 Questions