Bird
0
0

You want to automate opening multiple files using a script. Which approach is better and why?

hard📝 Application Q15 of 15
Linux CLI - Linux Basics and Terminal
You want to automate opening multiple files using a script. Which approach is better and why?
AManually open each file in the GUI because it is faster.
BUse a terminal script with commands like <code>xdg-open</code> because it can run without user interaction.
CUse GUI only because terminal cannot open files.
DWrite a script that clicks GUI buttons automatically because terminal commands are limited.
Step-by-Step Solution
Solution:
  1. Step 1: Understand automation needs

    Automation requires running commands without manual clicks or interaction.
  2. Step 2: Compare terminal and GUI for automation

    Terminal scripts using commands like xdg-open can open files automatically and remotely, unlike manual GUI actions.
  3. Final Answer:

    Use a terminal script with commands like xdg-open because it can run without user interaction. -> Option B
  4. Quick Check:

    Terminal scripts enable automation better than manual GUI [OK]
Quick Trick: Terminal scripts automate tasks better than manual GUI [OK]
Common Mistakes:
  • Thinking GUI is faster for automation
  • Believing terminal can't open files
  • Assuming GUI clicks can be scripted easily

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes