Forrest logo
back to the ruby tool

ruby:tldr:052bd

ruby: Show the version of Ruby you are using.
$ ruby -v
try on your machine

The command "ruby -v" is used to check the version of the Ruby programming language installed on your computer.

  • "ruby" is the command to invoke the Ruby interpreter, which is the program that executes Ruby code.
  • "-v" is a command line option (or flag) that stands for "version". When used with the "ruby" command, it instructs the interpreter to display the installed version of Ruby.

By running "ruby -v" in your command line or terminal, you will see the version number of Ruby displayed. For example, the output might look like this: "ruby 2.7.2p137 (2020-10-01 revision 5445e04352)".

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 ruby tool