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
- Login to your server via SSH.
- Run the following command:
You will then see a response similar to the following:
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
In this example, you see the ruby version on this server is 1.8.7
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