From: Love U Ruby Date: 2013-02-14T01:07:53+09:00 Subject: Re: Ruby command line options s and S "Jesús Gabriel y Galán" wrote in post #1096690: > On Wed, Feb 13, 2013 at 4:51 PM, Love U Ruby > wrote: >>> and $PATH includes that folder. You could call ruby -S test.rb from >>> anywhere and Ruby will get test.rb from /home/user/bin >> >> @Jesus - nice explanation you have given. Could you tell me how can I >> see the $PATH contents in UBUNTU ? > > Well, this is basic unix usage: > > $ echo $PATH > > Jesus. Yeah,I know I tried that also. peter@ubuntu:~$ echo $RUBYPATH peter@ubuntu:~$ echo $PATH /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games peter@ubuntu:~$ But $PATH gives me too many. How to recognize which one is for Ruby? That's my confusion. BTW why $RUBYPATH is showing nothing? Thanks -- Posted via http://www.ruby-forum.com/.