Bird
0
0

Which command makes a bash script file executable?

easy🧠 Conceptual Q2 of 15
Bash Scripting - Basics
Which command makes a bash script file executable?
Achmod +x script.sh
Brun script.sh
Cedit script.sh
Dopen script.sh
Step-by-Step Solution
Solution:
  1. Step 1: Understand how to set execute permission

    To run a bash script, it must have execute permission set using chmod +x.
  2. Step 2: Identify the correct command

    chmod +x script.sh sets the execute bit, allowing the script to run.
  3. Final Answer:

    chmod +x script.sh -> Option A
  4. Quick Check:

    Make script executable = chmod +x [OK]
Quick Trick: Use chmod +x to make scripts executable [OK]
Common Mistakes:
MISTAKES
  • Trying to run without execute permission
  • Using run which is not a bash command
  • Using edit or open which do not set permissions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Bash Scripting Quizzes