nerdexam
ExamsXK0-004Questions#260
CompTIA

XK0-004 · Question #260

XK0-004 Question #260: Real Exam Question with Answer & Explanation

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

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-004 to see the answer

You've previewed enough free XK0-004 questions. Unlock XK0-004 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.

Full XK0-004 Practice