Forrest logo
back to the rbenv tool

rbenv:tldr:0c51c

rbenv: Display a list of installed Ruby versions.
$ rbenv versions
try on your machine

The command "rbenv versions" is used with rbenv, a Ruby version management tool. It is used to list all the Ruby versions installed on your system.

When you run "rbenv versions" in the terminal, it will display a list of all the Ruby versions available to use with rbenv. This includes both the versions that are globally installed on your system and the versions that are installed locally for a specific project.

The output will typically look something like this:

* system (set by /usr/local/rbenv/version)
  2.6.3
  2.7.1

In this example, there are two Ruby versions listed: system and 2.6.3. The system version refers to the Ruby version that is set as the default system-wide version by rbenv. The asterisk (*) indicates that it is the currently active version. The other version, 2.6.3, is an additional Ruby version that has been installed and can be switched to using the "rbenv global" or "rbenv local" commands.

By listing the installed Ruby versions, "rbenv versions" helps you keep track of which versions are available on your system and which one is currently being used. It is useful for managing multiple projects that require different Ruby versions.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the rbenv tool