# How to change ri1.8 to ri in shell command?

**URL:** <https://www.ruby-forum.com/t/how-to-change-ri1-8-to-ri-in-shell-command/188829>\
**Category:** Ruby\
**Created:** [May 19, 2010, 2:28am UTC](https://www.ruby-forum.com/t/how-to-change-ri1-8-to-ri-in-shell-command/188829 "2010-05-19T02:28:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luofeiyu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9de0a6/32.png) [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Post date:** [May 19, 2010, 2:28am UTC](https://www.ruby-forum.com/t/how-to-change-ri1-8-to-ri-in-shell-command/188829/1 "2010-05-19T02:28:49Z")

</div>

ruby1.8 and ri1.8 were installed in my computer ,there is strange thing  
:  
pt@pt-laptop:~$ ri array  
The program ‘ri’ is currently not installed. You can install it by  
typing:  
sudo apt-get install ri

when i input  
pt@pt-laptop:~$ ri1.8 array  
lots of output which is what i want  
can i change ri1.8 in shell command to ri in my computer?

---

<div class="post-metadata">

**Author:** ![luofeiyu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9de0a6/32.png) [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Post date:** [May 19, 2010, 2:56am UTC](https://www.ruby-forum.com/t/how-to-change-ri1-8-to-ri-in-shell-command/188829/2 "2010-05-19T02:56:17Z")

</div>

On Tue, May 18, 2010 at 6:28 PM, Pen T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ## can i change ri1.8 in shell command to ri in my computer?

Well, if you install the ‘ri’ package in Ubuntu it installs a symbolic  
link for ri that points to ri1.8. If you don’t want to do that, you  
could always make the symbolic link yourself:

sudo ln -s `which ri1.8` /usr/local/bin/ri  
(note those are backticks, not quotes)

-Jonathan N.
