Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed rvm according to the instructions from the official website. Then I installed two ruby versions While rvm was visible to bash, ruby was not.

enter image description here

I was browsing the web for a solution and I found the following command: enter image description here

After this, bash was able to see ruby. I can't understand how did this happen. From my perspective, the command was absolutely useless as I just installed the latest rvm version.

share|improve this question
Did you restart your bash session after installing RVM? – MattDMo Jan 19 '14 at 20:01
Indeed, in the meantime I executed '~/.bashrc'. I assume that was the real cause. Cheers. – user3122885 Jan 19 '14 at 22:09

From your second screen shot you may noticed that rvm add RVM path to /home/octavian/.bashrc . So bash will know about it. try

grep -i rvm /home/octavian/.bashrc

Same for sh (/home/octavian/.shrc)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.