To make sure that Ruby is installed and running correctly, enter the following command:
ruby -v
Or
ruby --version
If the Ruby version is displayed in the output, it means that Ruby has been successfully installed on your system.