Bird
0
0

What does the rbenv versions command do?

easy📝 Conceptual Q1 of 15
Ruby - Ecosystem and Best Practices
What does the rbenv versions command do?
ADisplays the current Ruby version in use
BInstalls a new Ruby version
CLists all Ruby versions installed and available to rbenv
DRemoves a Ruby version from the system
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of rbenv versions

    This command shows all Ruby versions that rbenv knows about and can use.
  2. Step 2: Differentiate from other commands

    Installing or removing Ruby versions uses different commands like rbenv install or manual removal, and displaying current version uses rbenv version.
  3. Final Answer:

    Lists all Ruby versions installed and available to rbenv -> Option C
  4. Quick Check:

    Command function = List installed versions [OK]
Quick Trick: Use rbenv versions to see all installed Ruby versions [OK]
Common Mistakes:
  • Confusing rbenv versions with rbenv version
  • Thinking it installs or removes Ruby versions
  • Assuming it shows only the current version

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Ruby Quizzes