Viewing Your Ruby Version Via SSH

Viewing Your Ruby Version Via SSH

Now that Ruby is available on shared servers, you may need to know what version is available. In this tutorial we will show you how to see the Ruby version running on your server, by using a command in SSH.

How to View your Ruby Version in SSH

  1. Login to your server via SSH.
  2. Run the following command: ruby -v

You will then see a response similar to the following:

ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu]

Congratulations, now you know how to view your version of Ruby via SSH! In the next Ruby guide, we will show you how to install a Gem via SSH. To continue learning, see the Official Ruby Guides. Code Academy is also a good source for learing to Ruby. Learn more information on Ruby Hosting.

JB
John-Paul Briones Content Writer II

John-Paul is an Electronics Engineer that spent most of his career in IT. He has been a Technical Writer for InMotion since 2013.

More Articles by John-Paul

Was this article helpful? Join the conversation!