Bird
0
0

You want to open a terminal and immediately list all files in your Documents folder. Which command should you use?

hard📝 Application Q15 of 15
Linux CLI - Linux Basics and Terminal
You want to open a terminal and immediately list all files in your Documents folder. Which command should you use?
Aopen-terminal ls Documents
Bgnome-terminal -- bash -c "ls ~/Documents"
Cstart-terminal -list ~/Documents
Dterminal ls -all Documents
Step-by-Step Solution
Solution:
  1. Step 1: Understand how to open terminal and run a command

    The command gnome-terminal -- bash -c "ls ~/Documents" opens a terminal and runs ls ~/Documents.
  2. Step 2: Check other options for correctness

    Other options use invalid commands like open-terminal, start-terminal, or wrong syntax.
  3. Final Answer:

    gnome-terminal -- bash -c "ls ~/Documents" -> Option B
  4. Quick Check:

    Open terminal and run command = gnome-terminal -- bash -c [OK]
Quick Trick: Use gnome-terminal with bash -c to run commands [OK]
Common Mistakes:
MISTAKES
  • Using non-existent commands
  • Wrong syntax for running commands
  • Not quoting commands properly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes