Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

where is the path of Ruby executable file and the gem.bat in linux?

I need to set a path Variable on PHPStorm for the ruby executable file and the gem.bat.

I am using a virtual machine that has 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

like image 454
Monica Avatar asked Oct 16 '25 15:10

Monica


1 Answers

Use which or type command:

$ which ruby

or

$ type ruby

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

like image 159
falsetru Avatar answered Oct 18 '25 05:10

falsetru



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!