Bird
0
0

Which command lists all installed gems on your system?

easy📝 Conceptual Q2 of 15
Ruby - Gems and Bundler
Which command lists all installed gems on your system?
Agem remove
Bgem list
Cgem update
Dgem install
Step-by-Step Solution
Solution:
  1. Step 1: Recall gem commands

    To see installed gems, the command is 'gem list'.
  2. Step 2: Differentiate commands

    'gem install' adds gems, 'gem update' upgrades them, and 'gem remove' deletes gems.
  3. Final Answer:

    gem list -> Option B
  4. Quick Check:

    List installed gems = gem list [OK]
Quick Trick: Use 'gem list' to see installed gems quickly [OK]
Common Mistakes:
  • Using 'gem install' to list gems
  • Confusing 'gem update' with listing
  • Trying 'gem remove' to list gems

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Ruby Quizzes