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 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.