AIt deletes temporary files automatically without user intervention
BIt pauses the script execution until user input is received
CIt runs specified commands when the script receives certain signals or exits
DIt creates a loop that repeats commands indefinitely
Step-by-Step Solution
Solution:
Step 1: Understand the purpose of trap
The trap command is used to catch signals or script exit events and run commands in response.
Step 2: Identify the correct description
Only It runs specified commands when the script receives certain signals or exits correctly describes trap's role in running commands on signals or exit.
Final Answer:
It runs specified commands when the script receives certain signals or exits -> Option C
Quick Check:
trap purpose = run commands on signals/exit [OK]
Quick Trick:trap runs commands on signals or exit events [OK]
Common Mistakes:
MISTAKES
Thinking trap pauses script execution
Confusing trap with loops
Assuming trap deletes files automatically
Master "Error Handling" in Bash Scripting
9 interactive learning modes - each teaches the same concept differently