Where is the path to the Ruby executable and gem.bat on linux?

I need to set Variable path in PHPStorm for ruby ​​executable and gem.bat.

I am using a virtual machine that installed CentOS and I just ran

$ sudo yum install ruby

      

Now I need to find the path, but I have no idea where ruby ​​was installed under which directory

+3


source to share


1 answer


Use the command which

or type

:

$ which ruby

      

or



$ type ruby

      

It will show you the path of the executable if the directory contains the executable listed in PATH.

+3


source







All Articles