How to check Ruby version?

Member

by charles , in category: Ruby , 2 years ago

How to check Ruby version?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by dmitrypro77 , 2 years ago

@charles You can check it from the command line and below is command to check ruby version:

1
2
ruby -v
# Output: ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux]


by rachelle_funk , a year ago

@charles 

You can check the version of Ruby installed on your system using the following command in your terminal:

1
ruby -v


This command will display the version number of Ruby that is currently installed on your system. For example, the output might look something like this:

1
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18]


In this example, the version of Ruby installed is 2.6.3.