Bird
0
0

What is the main purpose of creating a .sh script file in bash?

easy🧠 Conceptual Q11 of 15
Bash Scripting - Basics
What is the main purpose of creating a .sh script file in bash?
ATo compile programs
BTo store text documents
CTo save a list of commands to run them later easily
DTo create image files
Step-by-Step Solution
Solution:
  1. Step 1: Understand what a script file is

    A .sh file contains bash commands saved to run multiple times without typing again.
  2. Step 2: Identify the purpose of saving commands

    Saving commands helps automate tasks and avoid retyping, which matches To save a list of commands to run them later easily.
  3. Final Answer:

    To save a list of commands to run them later easily -> Option C
  4. Quick Check:

    Script file purpose = save commands [OK]
Quick Trick: Scripts save commands to run anytime without retyping [OK]
Common Mistakes:
MISTAKES
  • Thinking .sh files are for text or images
  • Confusing scripts with compiled programs
  • Not knowing scripts automate commands

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Bash Scripting Quizzes